mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
excmds.ts: Fix viewsource disregarding its argument
This commit is contained in:
parent
5be209f100
commit
b83fbfec5e
1 changed files with 1 additions and 1 deletions
|
@ -300,7 +300,7 @@ export function viewsource(url = "") {
|
|||
if (url === "")
|
||||
url = window.location.href
|
||||
if (config.get("viewsource") === "default") {
|
||||
window.location.href = "view-source:" + window.location.href
|
||||
window.location.href = "view-source:" + url
|
||||
return
|
||||
}
|
||||
if (!sourceElement) {
|
||||
|
|
Loading…
Add table
Reference in a new issue