fx-compat: Change "pref(" prefix in prefs file to "user_pref(" for tests
We now copy the prefs file into the app omni.ja, which requires `pref()`, but for tests we copy it to the profile directory, where it needs to stay as `user_pref()`.
This commit is contained in:
parent
c7c61f72c9
commit
d838bc952a
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ fi
|
|||
cp -R $PDF_TOOLS_CACHE_DIR $PDF_TOOLS_DIR
|
||||
|
||||
# Add default prefs, which are apparently no longer read from extensions in Firefox 60
|
||||
cat "$ZOTERO_PATH/defaults/preferences/zotero.js" > "$PROFILE/prefs.js"
|
||||
cat "$ZOTERO_PATH/defaults/preferences/zotero.js" | sed 's/^pref/user_pref/g' > "$PROFILE/prefs.js"
|
||||
|
||||
cat <<EOF >> "$PROFILE/prefs.js"
|
||||
user_pref("app.update.enabled", false);
|
||||
|
|
Loading…
Reference in a new issue