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

Unified Diff: remoting/webapp/me2mom/util.js

Issue 8758001: Launch Me2Me connections in a new tab. Remove OK button from post-connect screens for Me2Me. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
Index: remoting/webapp/me2mom/util.js
diff --git a/remoting/webapp/me2mom/util.js b/remoting/webapp/me2mom/util.js
index 0c15c0c1075dc7b1110ebb3deb5940f3b67ef830..f6899c3a8029329445b4ffa5b8fc26e460f2740f 100644
--- a/remoting/webapp/me2mom/util.js
+++ b/remoting/webapp/me2mom/util.js
@@ -38,3 +38,16 @@ function removeClass(element, cls) {
element.className.replace(new RegExp('\\b' + cls + '\\b', 'g'), '')
.replace(' ', ' ');
}
+
+/**
+ * @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;
+}

Powered by Google App Engine
This is Rietveld 408576698