From b0a8815bb8e252d7cafdb22736b1b28442fc45ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20J=C3=BCrgens?= Date: Fri, 4 Nov 2022 23:20:46 +0100 Subject: [PATCH] add clipboard permission --- src/discordpage.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/discordpage.cpp b/src/discordpage.cpp index 6821a39..073641c 100644 --- a/src/discordpage.cpp +++ b/src/discordpage.cpp @@ -50,6 +50,8 @@ DiscordPage::DiscordPage(QWidget *parent) : QWebEnginePage(parent) { false); settings()->setAttribute(QWebEngineSettings::JavascriptCanOpenWindows, false); settings()->setAttribute(QWebEngineSettings::ScrollAnimatorEnabled, true); + settings()->setAttribute(QWebEngineSettings::JavascriptCanAccessClipboard, + true); setUrl(QUrl("https://discord.com/app"));