Avoid console warning about resource://gre/modules/FxAccountsCommon.js

This commit is contained in:
Dan Stillman 2023-05-05 00:37:09 -04:00
parent 328de1e790
commit 969b782fd0

View file

@ -126,6 +126,9 @@ function modify_omni {
}
if (!updateAuto) {' modules/UpdateService.jsm
# Avoid console warning about resource://gre/modules/FxAccountsCommon.js
replace_line 'const logins = this._data.logins;' 'const logins = this._data.logins; if (this._data.logins.length == -1) return;' modules/LoginStore.jsm
# Prevent error during network requests
replace_line 'async lazyInit\(\) \{' 'async lazyInit() { if (this.features) return false;' modules/UrlClassifierExceptionListService.jsm