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

Unified Diff: chrome/browser/resources/ntp/util.js

Issue 2805097: Fixes the regex used to test for the Mac platform. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp/util.js
diff --git a/chrome/browser/resources/ntp/util.js b/chrome/browser/resources/ntp/util.js
index ab99ec253a7964357fd301d99c3ccc48062aa848..b75935649343d6712cd1523b31162e2088fd1d2f 100644
--- a/chrome/browser/resources/ntp/util.js
+++ b/chrome/browser/resources/ntp/util.js
@@ -5,7 +5,7 @@
// TODO(arv): Move to shared/js once namespaced and tested.
var global = this;
-const IS_MAC = /$Mac/.test(navigator.platform);
+const IS_MAC = /^Mac/.test(navigator.platform);
function $(id) {
return document.getElementById(id);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698