Make $.set use the Chrome storage API.
This is about to get really ugly.
This commit is contained in:
parent
1b9c606f11
commit
b3b224a8df
@ -210,7 +210,9 @@ $.extend $,
|
||||
else
|
||||
defaultVal
|
||||
set: (key, val) ->
|
||||
localStorage.setItem g.NAMESPACE + key, JSON.stringify val
|
||||
item = {}
|
||||
item[key] = val
|
||||
chrome.storage.sync.set item
|
||||
<% } else if (type === 'userjs') { %>
|
||||
do ->
|
||||
# http://www.opera.com/docs/userjs/specs/#scriptstorage
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user