diff --git a/src/content.ts b/src/content.ts index 61bef721..e7e7a5bc 100644 --- a/src/content.ts +++ b/src/content.ts @@ -57,8 +57,5 @@ if ( window.location.protocol === "moz-extension:" && window.location.pathname === "/static/newtab.html" ) { - ;(window as any).tri.config.getAsync("newtab").then(newtab => { - if (newtab !== "") - window.location.href = (window as any).tri.excmds.forceURI(newtab) - }) + config.getAsync("newtab").then(newtab => newtab && excmds.open(newtab)) }