| 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;
|
| +}
|
|
|