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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/inspector.js

Issue 2124203002: DevTools: copy protocol files to front-end to fix hosted mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 5 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 unified diff | Download patch
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698