fix ctrl+click on tab, relates to #91

This commit is contained in:
vcoppe
2024-09-12 11:13:55 +02:00
parent dc76c71ae2
commit 3cc4d569f1
3 changed files with 350 additions and 331 deletions

View File

@@ -178,6 +178,14 @@ export function setScissorsCursor() {
setCursor(scissorsCursor);
}
export function isMac() {
return navigator.userAgent.toUpperCase().indexOf('MAC') >= 0;
}
export function isSafari() {
return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
}
export function getURLForLanguage(lang: string | null | undefined, path: string): string {
let newPath = path.replace(base, '');
let languageInPath = newPath.split('/')[1];