Fix jscompile errors.

Review URL: https://codereview.chromium.org/437383002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287587 0039d316-1c4b-4281-b951-d872f2087c98
parent cf7dc016
...@@ -529,7 +529,7 @@ remoting.generateXsrfToken = function() { ...@@ -529,7 +529,7 @@ remoting.generateXsrfToken = function() {
/** /**
* Tests whether we are running on Mac. * Tests whether we are running on Mac.
* *
* @return {bool} True if the platform is Mac. * @return {boolean} True if the platform is Mac.
*/ */
remoting.platformIsMac = function() { remoting.platformIsMac = function() {
return navigator.platform.indexOf('Mac') != -1; return navigator.platform.indexOf('Mac') != -1;
...@@ -538,7 +538,7 @@ remoting.platformIsMac = function() { ...@@ -538,7 +538,7 @@ remoting.platformIsMac = function() {
/** /**
* Tests whether we are running on Windows. * Tests whether we are running on Windows.
* *
* @return {bool} True if the platform is Windows. * @return {boolean} True if the platform is Windows.
*/ */
remoting.platformIsWindows = function() { remoting.platformIsWindows = function() {
return navigator.platform.indexOf('Win32') != -1; return navigator.platform.indexOf('Win32') != -1;
...@@ -547,7 +547,7 @@ remoting.platformIsWindows = function() { ...@@ -547,7 +547,7 @@ remoting.platformIsWindows = function() {
/** /**
* Tests whether we are running on Linux. * Tests whether we are running on Linux.
* *
* @return {bool} True if the platform is Linux. * @return {boolean} True if the platform is Linux.
*/ */
remoting.platformIsLinux = function() { remoting.platformIsLinux = function() {
return (navigator.platform.indexOf('Linux') != -1) && return (navigator.platform.indexOf('Linux') != -1) &&
...@@ -557,8 +557,8 @@ remoting.platformIsLinux = function() { ...@@ -557,8 +557,8 @@ remoting.platformIsLinux = function() {
/** /**
* Tests whether we are running on ChromeOS. * Tests whether we are running on ChromeOS.
* *
* @return {bool} True if the platform is ChromeOS. * @return {boolean} True if the platform is ChromeOS.
*/ */
remoting.platformIsChromeOS = function() { remoting.platformIsChromeOS = function() {
return navigator.userAgent.match(/\bCrOS\b/); return navigator.userAgent.match(/\bCrOS\b/) != null;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment