mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 08:27:31 +09:00
Add Tampermonkey WebExtension manifest and managed storage compatibility
This commit is contained in:
parent
5ac0d5acc3
commit
cc3106406f
5 changed files with 80 additions and 3 deletions
|
|
@ -41,6 +41,27 @@ function storageApiFactory(context) {
|
|||
},
|
||||
},
|
||||
|
||||
managed: {
|
||||
get: function(keys) {
|
||||
keys = sanitize(keys);
|
||||
return context.childManager.callParentAsyncFunction("storage.managed.get", [
|
||||
keys,
|
||||
]);
|
||||
},
|
||||
set: function() {
|
||||
throw new context.cloneScope.Error(
|
||||
"storage.managed is read-only");
|
||||
},
|
||||
remove: function() {
|
||||
throw new context.cloneScope.Error(
|
||||
"storage.managed is read-only");
|
||||
},
|
||||
clear: function() {
|
||||
throw new context.cloneScope.Error(
|
||||
"storage.managed is read-only");
|
||||
},
|
||||
},
|
||||
|
||||
sync: {
|
||||
get: function(keys) {
|
||||
keys = sanitize(keys);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue