redesign and fixes

This commit is contained in:
2021-02-05 19:57:06 +01:00
parent c712d614e1
commit 611b101e9e
15 changed files with 243 additions and 50 deletions

View File

@@ -42,6 +42,19 @@ export function decodeTags(tags) {
return outTags;
}
export function compareArrays (arr1, arr2) {
let result = false;
arr1.every((elem) => {
if(arr2.includes(elem)){
result = true;
return false;
} else {
return true;
}
})
return result;
}
export const openInNewTab = (url) => {
const newWindow = window.open(url, "_blank", "noopener,noreferrer");
if (newWindow) newWindow.opener = null;