зеркало из 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(),
|
}).api(),
|
||||||
|
|
||||||
state: Object.assign(
|
state: Object.assign(
|
||||||
ExtensionPreferencesManager.getSettingsAPI(
|
ExtensionPreferencesManager.getSettingsAPI({
|
||||||
context.extension.id,
|
extensionId: context.extension.id,
|
||||||
"dohRollout.state",
|
name: "dohRollout.state",
|
||||||
() => {
|
callback: () => {
|
||||||
throw new Error("Not supported");
|
throw new Error("Not supported");
|
||||||
},
|
},
|
||||||
undefined,
|
}),
|
||||||
false,
|
|
||||||
() => {}
|
|
||||||
),
|
|
||||||
{
|
{
|
||||||
set: details => {
|
set: details => {
|
||||||
return ExtensionPreferencesManager.setSetting(
|
return ExtensionPreferencesManager.setSetting(
|
||||||
|
|
Загрузка…
Ссылка в новой задаче