const internals = {
promisesSupported: !!window.browser,
- injectedScript: false,
+ injectedScript: {},
port: null,
currentUrl: null,
const activeTabs = await internals.getActiveTabs();
internals.currentUrl = activeTabs[0].url;
- if (!internals.injectedScript) {
+ const id = activeTabs[0].id;
+ if (!internals.injectedScript[id]) {
const execution = await internals.getRoot().tabs.executeScript(
activeTabs[0].id,
{
file: "/build/content_script.js",
},
() => {
- internals.injectedScript = true;
+ internals.injectedScript[id] = true;
},
);
{
- "images" : [
+ "images": [
{
- "filename" : "icon_16x16.png",
- "idiom" : "mac",
- "scale" : "1x",
- "size" : "16x16"
+ "filename": "icon_16x16.png",
+ "idiom": "mac",
+ "scale": "1x",
+ "size": "16x16"
},
{
- "filename" : "icon_16x16@2x.png",
- "idiom" : "mac",
- "scale" : "2x",
- "size" : "16x16"
+ "filename": "icon_16x16@2x.png",
+ "idiom": "mac",
+ "scale": "2x",
+ "size": "16x16"
},
{
- "filename" : "icon_32x32.png",
- "idiom" : "mac",
- "scale" : "1x",
- "size" : "32x32"
+ "filename": "icon_32x32.png",
+ "idiom": "mac",
+ "scale": "1x",
+ "size": "32x32"
},
{
- "filename" : "icon_32x32@2x.png",
- "idiom" : "mac",
- "scale" : "2x",
- "size" : "32x32"
+ "filename": "icon_32x32@2x.png",
+ "idiom": "mac",
+ "scale": "2x",
+ "size": "32x32"
},
{
- "filename" : "icon_128x128.png",
- "idiom" : "mac",
- "scale" : "1x",
- "size" : "128x128"
+ "filename": "icon_128x128.png",
+ "idiom": "mac",
+ "scale": "1x",
+ "size": "128x128"
},
{
- "filename" : "icon_128x128@2x.png",
- "idiom" : "mac",
- "scale" : "2x",
- "size" : "128x128"
+ "filename": "icon_128x128@2x.png",
+ "idiom": "mac",
+ "scale": "2x",
+ "size": "128x128"
},
{
- "filename" : "icon_256x256.png",
- "idiom" : "mac",
- "scale" : "1x",
- "size" : "256x256"
+ "filename": "icon_256x256.png",
+ "idiom": "mac",
+ "scale": "1x",
+ "size": "256x256"
},
{
- "filename" : "icon_256x256@2x.png",
- "idiom" : "mac",
- "scale" : "2x",
- "size" : "256x256"
+ "filename": "icon_256x256@2x.png",
+ "idiom": "mac",
+ "scale": "2x",
+ "size": "256x256"
},
{
- "filename" : "icon_512x512.png",
- "idiom" : "mac",
- "scale" : "1x",
- "size" : "512x512"
+ "filename": "icon_512x512.png",
+ "idiom": "mac",
+ "scale": "1x",
+ "size": "512x512"
},
{
- "filename" : "icon_512x512@2x.png",
- "idiom" : "mac",
- "scale" : "2x",
- "size" : "512x512"
+ "filename": "icon_512x512@2x.png",
+ "idiom": "mac",
+ "scale": "2x",
+ "size": "512x512"
}
],
- "info" : {
- "author" : "xcode",
- "version" : 1
+ "info": {
+ "author": "xcode",
+ "version": 1
}
}