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

Side by Side Diff: lib/utils.js

Issue 16067002: Added Safari Support (Closed)
Patch Set: Made description for Safari long again. The 100 char limit given by the extension builder doesn't a… Created Oct. 31, 2013, 2:12 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/stats.js ('k') | lib/websql/io.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <http://adblockplus.org/>, 2 * This file is part of Adblock Plus <http://adblockplus.org/>,
3 * Copyright (C) 2006-2013 Eyeo GmbH 3 * Copyright (C) 2006-2013 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 } 60 }
61 } 61 }
62 62
63 if (runAsyncQueue) 63 if (runAsyncQueue)
64 runAsyncQueue.push(callback); 64 runAsyncQueue.push(callback);
65 else 65 else
66 window.setTimeout(callback, 0); 66 window.setTimeout(callback, 0);
67 }, 67 },
68 get appLocale() 68 get appLocale()
69 { 69 {
70 var locale = chrome.i18n.getMessage("@@ui_locale").replace(/_/g, "-"); 70 var locale = ext.i18n.getMessage("@@ui_locale").replace(/_/g, "-");
71 this.__defineGetter__("appLocale", function() {return locale}); 71 this.__defineGetter__("appLocale", function() {return locale});
72 return this.appLocale; 72 return this.appLocale;
73 }, 73 },
74 generateChecksum: function(lines) 74 generateChecksum: function(lines)
75 { 75 {
76 // We cannot calculate MD5 checksums yet :-( 76 // We cannot calculate MD5 checksums yet :-(
77 return null; 77 return null;
78 }, 78 },
79 makeURI: function(url) 79 makeURI: function(url)
80 { 80 {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 return selectedItem; 133 return selectedItem;
134 }, 134 },
135 135
136 getDocLink: function(linkID) 136 getDocLink: function(linkID)
137 { 137 {
138 var Prefs = require("prefs").Prefs; 138 var Prefs = require("prefs").Prefs;
139 var docLink = Prefs.documentation_link; 139 var docLink = Prefs.documentation_link;
140 return docLink.replace(/%LINK%/g, linkID).replace(/%LANG%/g, Utils.appLocale ); 140 return docLink.replace(/%LINK%/g, linkID).replace(/%LANG%/g, Utils.appLocale );
141 } 141 }
142 }; 142 };
OLDNEW
« no previous file with comments | « lib/stats.js ('k') | lib/websql/io.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld