mirror of https://github.com/Lissy93/dashy.git
🔒 Enables copy-to-clipboard for sites running in iframe modal / widget (#1207)
This commit is contained in:
parent
d96297e0f8
commit
d469672527
|
@ -3,7 +3,8 @@
|
|||
classes="dashy-modal">
|
||||
<div slot="top-right" @click="hide()">Close</div>
|
||||
<a @click="hide()" class="close-button" title="Close">x</a>
|
||||
<iframe v-if="url" :src="url" @keydown.esc="close" class="frame" allow="fullscreen" />
|
||||
<iframe v-if="url" :src="url" @keydown.esc="close" class="frame"
|
||||
allow="fullscreen; clipboard-write" />
|
||||
<div v-else class="no-url">No URL Specified</div>
|
||||
</modal>
|
||||
</template>
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
:src="frameUrl"
|
||||
:id="frameId"
|
||||
title="Iframe Widget"
|
||||
allow="fullscreen; clipboard-write"
|
||||
:style="frameHeight ? `height: ${frameHeight}px` : ''"
|
||||
/>
|
||||
</div>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div class="web-content" :id="id">
|
||||
<iframe :src="url" allow="fullscreen" />
|
||||
<iframe :src="url" allow="fullscreen; clipboard-write" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
Loading…
Reference in New Issue