Commit f406270c authored by apavlov@chromium.org's avatar apavlov@chromium.org

DevTools: Fix "toolbox" app startup in the debug_devtools mode

This was broken by the async module loading.

R=pfeldman@chromium.org,dgozman

Review URL: https://codereview.chromium.org/648153002

git-svn-id: svn://svn.chromium.org/blink/trunk@183599 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent fcfcf40e
...@@ -2,13 +2,6 @@ ...@@ -2,13 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
function windowLoaded()
{
window.removeEventListener("DOMContentLoaded", windowLoaded, false);
new WebInspector.Toolbox();
}
window.addEventListener("DOMContentLoaded", windowLoaded, false);
/** /**
* @constructor * @constructor
*/ */
...@@ -40,3 +33,14 @@ WebInspector.Toolbox = function() ...@@ -40,3 +33,14 @@ WebInspector.Toolbox = function()
// FIXME: This stub is invoked from the backend and should be removed // FIXME: This stub is invoked from the backend and should be removed
// once we migrate to the "pull" model for extensions retrieval. // once we migrate to the "pull" model for extensions retrieval.
WebInspector.addExtensions = function() {} WebInspector.addExtensions = function() {}
function windowLoaded()
{
window.removeEventListener("DOMContentLoaded", windowLoaded, false);
new WebInspector.Toolbox();
}
if (document.readyState === "complete")
new WebInspector.Toolbox();
else
window.addEventListener("DOMContentLoaded", windowLoaded, false);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment