Skip to content

Commit 27d726d

Browse files
committed
Remove unnecessary tabs permission from Chrome extension
- Remove tabs permission from manifest.json to comply with Chrome Web Store policy - chrome.tabs.create() works without tabs permission - Add changeset for patch release
1 parent db579ec commit 27d726d

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@mcp-pointer/chrome-extension": patch
3+
---
4+
5+
Remove unnecessary tabs permission from Chrome extension manifest to comply with Chrome Web Store policy. The chrome.tabs.create() function works without the tabs permission.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
const fs = require('fs');
22
const path = require('path');
33

4-
// Read version from local package.json
4+
// Read version from local package.json
55
const packageJsonPath = path.join(__dirname, '../package.json');
66
const manifestPath = path.join(__dirname, '../src/manifest.json');
77

88
try {
99
// Get version from package.json
1010
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
11-
const version = packageJson.version;
11+
const { version } = packageJson;
1212

1313
// Read and update manifest.json
1414
const manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf8'));
1515
manifest.version = version;
1616

1717
// Write back to manifest.json with proper formatting
18-
fs.writeFileSync(manifestPath, JSON.stringify(manifest, null, 2) + '\n');
18+
fs.writeFileSync(manifestPath, `${JSON.stringify(manifest, null, 2)}\n`);
1919

2020
console.log(`✅ Bumped manifest version to ${version}`);
2121
} catch (error) {
2222
console.error('❌ Error bumping manifest version:', error.message);
2323
process.exit(1);
24-
}
24+
}

packages/chrome-extension/src/manifest.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
}
4242
],
4343
"permissions": [
44-
"storage",
45-
"tabs"
44+
"storage"
4645
]
4746
}

0 commit comments

Comments
 (0)