Remove hotkeys and fix tag selection (#505)

* Remove broken scene player hotkeys
* Disable closing tag select menu after a select
This commit is contained in:
InfiniteTF
2020-04-29 01:55:34 +02:00
committed by GitHub
parent 52a1059380
commit a0306bfbd2
24 changed files with 116 additions and 142 deletions

View File

@@ -90,7 +90,7 @@ const sanitiseURL = (url?: string, siteURL?: URL) => {
if (!url) {
return url;
}
if (url.startsWith("http://") || url.startsWith("https://")) {
// just return the entire URL
return url;
@@ -103,12 +103,12 @@ const sanitiseURL = (url?: string, siteURL?: URL) => {
}
// otherwise, construct the url from the protocol, host and passed url
return siteURL.protocol + siteURL.host + "/" + url;
return `${siteURL.protocol}${siteURL.host}/${url}`;
}
// just prepend the protocol - assume https
return "https://" + url;
}
return `https://${url}`;
};
const TextUtils = {
truncate,