Skip to content

Commit

Permalink
run in world MAIN
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Nov 8, 2023
1 parent ab2da2f commit 42d7a87
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
6 changes: 1 addition & 5 deletions skeletons/web-extension/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,5 @@
// TODO: make this conditional, only do it when requested.
// only inject boot script when on an HTML page
if (document.contentType === 'text/html') {
let script = document.createElement('script');

script.src = chrome.runtime.getURL('scripts/boot.js');

document.documentElement.insertBefore(script, document.documentElement.firstChild);
window.EmberENV = { _DEBUG_RENDER_TREE: true };
}
2 changes: 1 addition & 1 deletion skeletons/web-extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
{
"matches": ["<all_urls>"],
"js": ["boot.js"],
"world": "MAIN",
"run_at": "document_start",
"match_about_blank": true,
"all_frames": true
Expand Down Expand Up @@ -63,7 +64,6 @@
{
"resources": [
"scripts/in-page-script.js",
"scripts/boot.js",
"panes-*/ember_debug.js"
],
"matches": [
Expand Down
3 changes: 0 additions & 3 deletions skeletons/web-extension/scripts/boot.js

This file was deleted.

0 comments on commit 42d7a87

Please sign in to comment.