@hieutran094/camoufox-js 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/utils.js +4 -0
- package/package.json +1 -1
package/dist/utils.js
CHANGED
|
@@ -69,6 +69,7 @@ function loadProperties(filePath) {
|
|
|
69
69
|
}
|
|
70
70
|
const propData = readFileSync(propFile).toString();
|
|
71
71
|
const propDict = JSON.parse(propData);
|
|
72
|
+
propDict.push({ "property": "allowAddonNewtab", "type": "bool" });
|
|
72
73
|
return propDict.reduce((acc, prop) => {
|
|
73
74
|
acc[prop.property] = prop.type;
|
|
74
75
|
return acc;
|
|
@@ -416,6 +417,9 @@ export async function launchOptions({ config, os, block_images, block_webrtc, bl
|
|
|
416
417
|
if (main_world_eval) {
|
|
417
418
|
setInto(config, 'allowMainWorld', true);
|
|
418
419
|
}
|
|
420
|
+
if (allow_addon_new_tab) {
|
|
421
|
+
setInto(config, 'allowMainWorld', true);
|
|
422
|
+
}
|
|
419
423
|
// Set Firefox user preferences
|
|
420
424
|
if (block_images) {
|
|
421
425
|
LeakWarning.warn('block_images', i_know_what_im_doing);
|