Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5001)

Unified Diff: chrome/common/extensions/docs/examples/extensions/gmail/options.js

Issue 10928174: More Gmail Checker fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update zip Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/docs/examples/extensions/gmail/manifest.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/examples/extensions/gmail/options.js
diff --git a/chrome/common/extensions/docs/examples/extensions/gmail/options.js b/chrome/common/extensions/docs/examples/extensions/gmail/options.js
index 553f3e2a69b84ccaf8ff5c078273c6fc19b0d1d2..d0b21a71572b2dbab932b6e5f3ca09560db15bc5 100644
--- a/chrome/common/extensions/docs/examples/extensions/gmail/options.js
+++ b/chrome/common/extensions/docs/examples/extensions/gmail/options.js
@@ -24,7 +24,8 @@ function getBackgroundPage(callback) {
}
function save() {
- localStorage.customDomain = customDomainsTextbox.value;
+ localStorage.customDomain =
+ customDomainsTextbox.value.replace(/^\/?(.*?)\/?$/, '$1');
markClean();
getBackgroundPage(function(backgroundPage) {
backgroundPage.startRequest({
« no previous file with comments | « chrome/common/extensions/docs/examples/extensions/gmail/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698