excmds.ts: Fix viewsource disregarding its argument

This commit is contained in:
glacambre 2018-03-08 22:32:11 +01:00
parent 5be209f100
commit b83fbfec5e
No known key found for this signature in database
GPG key ID: B9625DB1767553AC

View file

@ -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) {