mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -05:00
Merge pull request #190 from glacambre/fix_gh_homepage
src/excmds.ts: Fix gh failing to open the homepage.
This commit is contained in:
commit
f29cacbd46
1 changed files with 2 additions and 1 deletions
|
@ -258,6 +258,7 @@ export async function reloadhard(n = 1) {
|
|||
//#content
|
||||
export function open(...urlarr: string[]) {
|
||||
let url = urlarr.join(" ")
|
||||
console.log("open url:" + url)
|
||||
window.location.href = forceURI(url)
|
||||
}
|
||||
|
||||
|
@ -274,7 +275,7 @@ export function home(all: "false" | "true" = "false"){
|
|||
let homepages = config.get("homepages")
|
||||
console.log(homepages)
|
||||
if (homepages.length > 0){
|
||||
if (all === "false") open(homepages[-1])
|
||||
if (all === "false") open(homepages[homepages.length - 1])
|
||||
else {
|
||||
homepages.map(t=>tabopen(t))
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue