Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions userChrome.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ be modified when you are in root/admin mode.
// https://mike.kaply.com/2016/09/08/debugging-firefox-autoconfig-problems/
lockPref("a.b.c.d", "1.2.3.4"); // Debugging Firefox AutoConfig Problems

const { AddonManager } =
ChromeUtils.importESModule("resource://gre/modules/AddonManager.sys.mjs");
//find the modules here: https://searchfox.org/mozilla-central/source/toolkit/modules
const { FileUtils } =
ChromeUtils.importESModule("resource://gre/modules/FileUtils.sys.mjs");

// userChrome.js file for [Firefox program folder]
// file name must match the name in [Firefox program folder]\defaults\pref

Expand Down Expand Up @@ -108,12 +114,6 @@ try {
Services.obs.addObserver(this, 'final-ui-startup', false);
}

const { AddonManager } =
Components.utils.import("resource://gre/modules/AddonManager.jsm");

const { FileUtils } =
Components.utils.import("resource://gre/modules/FileUtils.jsm");

ConfigJS.prototype = {

observe: async function observe(subject, topic, data) {
Expand Down