OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 Runtime.startApplication("inspector"); | 5 // Preload protocol resources for hosted mode. |
| 6 if (!/** @type {?Object} */(window.InspectorFrontendHost)) { |
| 7 Promise.all([ |
| 8 Runtime.loadResourceIntoCache("./sdk/protocol/browser_protocol.json", fa
lse /* appendSourceURL */), |
| 9 Runtime.loadResourceIntoCache("./sdk/protocol/js_protocol.json", false /
* appendSourceURL */) |
| 10 ]).then(() => Runtime.startApplication("inspector")); |
| 11 } else { |
| 12 Runtime.startApplication("inspector"); |
| 13 } |
| 14 |
OLD | NEW |