Fix avoidance of console warning for FxAccountsCommon.js

Follow-up to 969b782fd0
This commit is contained in:
Dan Stillman 2023-05-11 02:09:14 -04:00
parent 3d7ce028e9
commit 75eeac1d41

View file

@ -127,7 +127,7 @@ 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
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