From 9c549acbadf14aaafef7edc981f0e5718a3bdbf6 Mon Sep 17 00:00:00 2001 From: "kurrik@chromium.org" Date: Wed, 21 Jul 2010 20:04:42 +0000 Subject: 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 --- chrome/browser/resources/ntp/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/browser/resources/ntp/util.js') 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); -- cgit v1.1