Files
sousa-gecko/devtools/client/webconsole/main.js
T
2018-05-24 18:11:14 +02:00

23 lines
892 B
JavaScript

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* global BrowserLoader */
"use strict";
const { BrowserLoader } = ChromeUtils.import("resource://devtools/client/shared/browser-loader.js", {});
this.WebConsoleOutput = function(parentNode, jsterm, toolbox, owner, serviceContainer) {
// Initialize module loader and load all modules of the new inline
// preview feature. The entire code-base doesn't need any extra
// privileges and runs entirely in content scope.
let WebConsoleOutputWrapper = BrowserLoader({
baseURI: "resource://devtools/client/webconsole/",
window
}).require("./webconsole-output-wrapper");
return new WebConsoleOutputWrapper(
parentNode, jsterm, toolbox, owner, serviceContainer);
};