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:
Thomas Wisniewski 2022-07-11 01:16:25 +00:00
Родитель 6f368f5d78
Коммит 28756b7a84
2 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -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() {}