mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 01:51:40 -05:00
Simplify newtab redirect code
This commit is contained in:
parent
a11d7704a8
commit
07b0a20923
1 changed files with 1 additions and 4 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue