electron-devtools-vendor
Version:
<div align="center"> <h2>electron-devtools-vendor</h2> <img alt="MIT" src="https://img.shields.io/github/license/BlackHole1/electron-devtools-vendor?color=9cf&style=flat-square"> <img alt="GitHub repo size" src="https://img.shields.io/github/r
16 lines (13 loc) • 565 B
JavaScript
// This script runs at document_start, avoid adding more stuff here!
// TODO: make this conditional, only do it when requested.
// only inject boot script when on an HTML page
if (document.contentType === 'text/html') {
window.EmberENV = { _DEBUG_RENDER_TREE: true };
// for firefox
//https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Sharing_objects_with_page_scripts
if (window.wrappedJSObject) {
const EmberENV = new window.Object();
EmberENV._DEBUG_RENDER_TREE = true
window.wrappedJSObject.EmberENV = EmberENV;
}
}