Skip to content

Commit

Permalink
fix(ui): overlay copy link should use current protocol (#4672)
Browse files Browse the repository at this point in the history
Fixes #4670
  • Loading branch information
sogehige committed Mar 16, 2021
1 parent 879d85f commit a2a1f3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/panel/views/registries/overlays/overlays.vue
Expand Up @@ -212,7 +212,7 @@ export default defineComponent({
}, { deep: true });
watch(copied, (val) => {
if (val.length > 0) {
navigator.clipboard.writeText(`https://${document.location.host}/overlays/${val}`);
navigator.clipboard.writeText(`${document.location.protocol}//${document.location.host}/overlays/${val}`);
setTimeout(() => {
copied.value = '';
ctx.root.$emit('bv::hide::tooltip');
Expand Down

0 comments on commit a2a1f3a

Please sign in to comment.