diff --git a/src/components/Menu.vue b/src/components/Menu.vue index dcb53cc..3e02702 100644 --- a/src/components/Menu.vue +++ b/src/components/Menu.vue @@ -238,16 +238,9 @@ export default { } }, copySessionUrl() { - // check for clipboard permissions - navigator.permissions - .query({ name: "clipboard-write" }) - .then(({ state }) => { - if (state === "granted" || state === "prompt") { - const url = window.location.href.split("#")[0]; - const link = url + "#" + this.session.sessionId; - navigator.clipboard.writeText(link); - } - }); + const url = window.location.href.split("#")[0]; + const link = url + "#" + this.session.sessionId; + navigator.clipboard.writeText(link); }, distributeRoles() { if (this.session.isSpectator) return; diff --git a/src/components/modals/GameStateModal.vue b/src/components/modals/GameStateModal.vue index 7cfa494..2e3d0dc 100644 --- a/src/components/modals/GameStateModal.vue +++ b/src/components/modals/GameStateModal.vue @@ -54,14 +54,7 @@ export default { }, methods: { copy: function() { - // check for clipboard permissions - navigator.permissions - .query({ name: "clipboard-write" }) - .then(({ state }) => { - if (state === "granted" || state === "prompt") { - navigator.clipboard.writeText(this.input || this.gamestate); - } - }); + navigator.clipboard.writeText(this.input || this.gamestate); }, load: function() { if (this.session.isSpectator) return;