зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1778125 - update the SmartBlock Branch shim to accept a callback as the last argument of the init method regardless of number of arguments; r=ksenia,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D151412
This commit is contained in:
Родитель
6f368f5d78
Коммит
28756b7a84
|
@ -2,7 +2,7 @@
|
|||
"manifest_version": 2,
|
||||
"name": "Web Compatibility Interventions",
|
||||
"description": "Urgent post-release fixes for web compatibility.",
|
||||
"version": "103.4.0",
|
||||
"version": "103.5.0",
|
||||
"applications": {
|
||||
"gecko": {
|
||||
"id": "webcompat@mozilla.org",
|
||||
|
|
|
@ -49,8 +49,11 @@ if (!window?.branch?.b) {
|
|||
first() {}
|
||||
getBrowserFingerprintId() {}
|
||||
getCode() {}
|
||||
init(key, cb) {
|
||||
cb?.(undefined, {});
|
||||
init(key, ...args) {
|
||||
const cb = args.pop();
|
||||
if (typeof cb === "function") {
|
||||
cb(undefined, {});
|
||||
}
|
||||
}
|
||||
lastAttributedTouchData() {}
|
||||
link() {}
|
||||
|
|
Загрузка…
Ссылка в новой задаче