| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 The Chromium Authors. All rights reserved. | 2 * Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 self.WebInspector = { | 7 self.WebInspector = { |
| 8 _queryParamsObject: {} | 8 _queryParamsObject: {} |
| 9 } | 9 } |
| 10 | 10 |
| 11 WebInspector.Events = { | |
| 12 InspectorLoaded: "InspectorLoaded" | |
| 13 } | |
| 14 | |
| 15 /** | 11 /** |
| 16 * @param {string} name | 12 * @param {string} name |
| 17 * @return {?string} | 13 * @return {?string} |
| 18 */ | 14 */ |
| 19 WebInspector.queryParam = function(name) | 15 WebInspector.queryParam = function(name) |
| 20 { | 16 { |
| 21 return WebInspector._queryParamsObject.hasOwnProperty(name) ? WebInspector._
queryParamsObject[name] : null; | 17 return WebInspector._queryParamsObject.hasOwnProperty(name) ? WebInspector._
queryParamsObject[name] : null; |
| 22 } | 18 } |
| 23 | 19 |
| 24 {(function parseQueryParameters() | 20 {(function parseQueryParameters() |
| (...skipping 12 matching lines...) Expand all Loading... |
| 37 if (settingsParam) { | 33 if (settingsParam) { |
| 38 try { | 34 try { |
| 39 var settings = JSON.parse(window.decodeURI(settingsParam)); | 35 var settings = JSON.parse(window.decodeURI(settingsParam)); |
| 40 for (var key in settings) | 36 for (var key in settings) |
| 41 window.localStorage[key] = settings[key]; | 37 window.localStorage[key] = settings[key]; |
| 42 } catch(e) { | 38 } catch(e) { |
| 43 // Ignore malformed settings. | 39 // Ignore malformed settings. |
| 44 } | 40 } |
| 45 } | 41 } |
| 46 })();} | 42 })();} |
| OLD | NEW |