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

Unified Diff: remoting/webapp/remoting.js

Issue 9610003: Use classList in host_table_entry (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 | « remoting/webapp/main.html ('k') | remoting/webapp/util.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/remoting.js
diff --git a/remoting/webapp/remoting.js b/remoting/webapp/remoting.js
index 75b84b719948c7f9e39c285bb8bdc34cc5463394..118c14674d62c31de717405904246cf45fe7f4b1 100644
--- a/remoting/webapp/remoting.js
+++ b/remoting/webapp/remoting.js
@@ -54,7 +54,7 @@ remoting.init = function() {
window.addEventListener('blur', pluginLostFocus_, false);
// Parse URL parameters.
- var urlParams = getUrlParameters();
+ var urlParams = getUrlParameters_();
if ('mode' in urlParams) {
if (urlParams['mode'] == 'me2me') {
var hostId = urlParams['hostId'];
@@ -193,3 +193,16 @@ function isHostModeSupported_() {
// Currently, sharing on Chromebooks is not supported.
return !navigator.userAgent.match(/\bCrOS\b/);
}
+
+/**
+ * @return {Object.<string, string>} The URL parameters.
+ */
+function getUrlParameters_() {
+ var result = {};
+ var parts = window.location.search.substring(1).split('&');
+ for (var i = 0; i < parts.length; i++) {
+ var pair = parts[i].split('=');
+ result[pair[0]] = decodeURIComponent(pair[1]);
+ }
+ return result;
+}
« no previous file with comments | « remoting/webapp/main.html ('k') | remoting/webapp/util.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698