mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user