Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: background.js

Issue 5732725684174848: Use safari.extension.settings instead of localStorage and WebSQL (Closed)
Patch Set: Created March 12, 2014, 2:11 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/ext/background.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: background.js
===================================================================
--- a/background.js
+++ b/background.js
@@ -54,11 +54,11 @@
var importingOldData = importOldData();
var addonVersion = require("info").addonVersion;
- var prevVersion = localStorage.currentVersion;
+ var prevVersion = ext.storage.currentVersion;
if (prevVersion != addonVersion)
{
isFirstRun = !prevVersion;
- localStorage.currentVersion = addonVersion;
+ ext.storage.currentVersion = addonVersion;
if (!importingOldData)
addSubscription(prevVersion);
}
@@ -84,8 +84,8 @@
var deprecatedOptions = ["specialCaseYouTube", "experimental", "disableInlineTextAds"];
deprecatedOptions.forEach(function(option)
{
- if (option in localStorage)
- delete localStorage[option];
+ if (option in ext.storage)
+ delete ext.storage[option];
});
}
« no previous file with comments | « no previous file | chrome/ext/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld