зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1598223 - Pass an object to ExtensionPreferencesManager.getSettingsAPI instead of split arguments. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D54621 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
18f3b61881
Коммит
e48ad7ccc0
|
@ -74,16 +74,13 @@ var preferences = class preferences extends ExtensionAPI {
|
|||
}).api(),
|
||||
|
||||
state: Object.assign(
|
||||
ExtensionPreferencesManager.getSettingsAPI(
|
||||
context.extension.id,
|
||||
"dohRollout.state",
|
||||
() => {
|
||||
ExtensionPreferencesManager.getSettingsAPI({
|
||||
extensionId: context.extension.id,
|
||||
name: "dohRollout.state",
|
||||
callback: () => {
|
||||
throw new Error("Not supported");
|
||||
},
|
||||
undefined,
|
||||
false,
|
||||
() => {}
|
||||
),
|
||||
}),
|
||||
{
|
||||
set: details => {
|
||||
return ExtensionPreferencesManager.setSetting(
|
||||
|
|
Загрузка…
Ссылка в новой задаче