diff --git a/mediawiki/loader.js b/mediawiki/loader.js index dc31131..647ae0a 100644 --- a/mediawiki/loader.js +++ b/mediawiki/loader.js @@ -96,6 +96,8 @@ mw.hook('wikipage.content').add(() => { ) } else if (event.data.type === 'mcw-calc-height-change') { iframe.style.height = `${event.data.data.height}px` + } else if (event.data.type === 'mcw-calc-clipboard') { + navigator.clipboard.writeText(event.data.data.text) } }) }) diff --git a/src/tools/banner/App.vue b/src/tools/banner/App.vue index 7bd7999..11147ca 100644 --- a/src/tools/banner/App.vue +++ b/src/tools/banner/App.vue @@ -1,6 +1,6 @@