Skip to content

Commit

Permalink
Fix jscompile errors.
Browse files Browse the repository at this point in the history
Review URL: https://codereview.chromium.org/437383002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287587 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
jamiewalch@chromium.org committed Aug 5, 2014
1 parent cf7dc01 commit 979110a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions remoting/webapp/remoting.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ remoting.generateXsrfToken = function() {
/**
* 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() {
return navigator.platform.indexOf('Mac') != -1;
Expand All @@ -538,7 +538,7 @@ remoting.platformIsMac = function() {
/**
* 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() {
return navigator.platform.indexOf('Win32') != -1;
Expand All @@ -547,7 +547,7 @@ remoting.platformIsWindows = function() {
/**
* 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() {
return (navigator.platform.indexOf('Linux') != -1) &&
Expand All @@ -557,8 +557,8 @@ remoting.platformIsLinux = function() {
/**
* 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() {
return navigator.userAgent.match(/\bCrOS\b/);
return navigator.userAgent.match(/\bCrOS\b/) != null;
}

0 comments on commit 979110a

Please sign in to comment.