moebius#339: Make it possible to add cookies, local and session storage entries

Issue #31
https://github.com/MoonchildProductions/moebius/pull/339
This commit is contained in:
janekptacijarabaci 2018-03-02 17:52:34 +01:00 committed by Roy Tam
commit 6d865bfda3
13 changed files with 309 additions and 43 deletions

View file

@ -90,6 +90,13 @@ createStorageSpec({
methods: Object.assign({},
editRemoveMethods,
{
addItem: {
request: {
guid: Arg(0, "string"),
},
response: {}
}
}, {
removeAll: {
request: {
host: Arg(0, "string"),
@ -119,6 +126,14 @@ types.addDictType("storageobject", {
const storageMethods = Object.assign({},
editRemoveMethods,
{
addItem: {
request: {
guid: Arg(0, "string"),
host: Arg(1, "nullable:string")
},
response: {}
}
}, {
removeAll: {
request: {
host: Arg(0, "string")