summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/ntp/util.js
diff options
context:
space:
mode:
authorkurrik@chromium.org <kurrik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-21 20:04:42 +0000
committerkurrik@chromium.org <kurrik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-21 20:04:42 +0000
commit9c549acbadf14aaafef7edc981f0e5718a3bdbf6 (patch)
tree27ce913c448040d563a899c62e88e9883c8b1492 /chrome/browser/resources/ntp/util.js
parent5ae94d291ec117a24f073d50ee79f2fb99a16b50 (diff)
downloadchromium_src-9c549acbadf14aaafef7edc981f0e5718a3bdbf6.zip
chromium_src-9c549acbadf14aaafef7edc981f0e5718a3bdbf6.tar.gz
chromium_src-9c549acbadf14aaafef7edc981f0e5718a3bdbf6.tar.bz2
Fixes the regex used to test for the Mac platform.
BUG=49809 TEST=None Review URL: http://codereview.chromium.org/2805097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53237 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/ntp/util.js')
-rw-r--r--chrome/browser/resources/ntp/util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/resources/ntp/util.js b/chrome/browser/resources/ntp/util.js
index ab99ec2..b759356 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);