Added the ability to bookmark the extension, along with some visual adjustments
This commit is contained in:
@@ -3,6 +3,7 @@ function startContentApplication({ environment, page, styles, products }) {
|
||||
if (!page.isAllowedPage()) return;
|
||||
styles.ensureExtensionStyles();
|
||||
products.ensureProductsBackgroundMessageHandler();
|
||||
environment.window?.addEventListener?.("hashchange", () => page.insertTile());
|
||||
if (page.insertTile()) return;
|
||||
const observer = new environment.MutationObserver(() => page.insertTile());
|
||||
observer.observe(environment.document.documentElement, { childList: true, subtree: true });
|
||||
|
||||
Reference in New Issue
Block a user