This commit is contained in:
Kasper Rynning-Tønnesen
2020-03-16 13:48:57 +01:00
parent 569aa7ef9b
commit 08c5c40335
10 changed files with 187 additions and 75 deletions

View File

@@ -43,6 +43,7 @@ export default {
return this.inlineSlot && window.innerWidth > 768
},
hostname(url) {
console.log(url);
const urlHostname = new URL(url).hostname
return urlHostname.split(".")[(urlHostname.match(/\./g) || []).length - 1]
}