add clipboard permission

This commit is contained in:
Malte Jürgens 2022-11-04 23:20:46 +01:00
parent 150fd4364e
commit b0a8815bb8
No known key found for this signature in database
GPG Key ID: D29FBD5F93C0CFC3
1 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,8 @@ DiscordPage::DiscordPage(QWidget *parent) : QWebEnginePage(parent) {
false); false);
settings()->setAttribute(QWebEngineSettings::JavascriptCanOpenWindows, false); settings()->setAttribute(QWebEngineSettings::JavascriptCanOpenWindows, false);
settings()->setAttribute(QWebEngineSettings::ScrollAnimatorEnabled, true); settings()->setAttribute(QWebEngineSettings::ScrollAnimatorEnabled, true);
settings()->setAttribute(QWebEngineSettings::JavascriptCanAccessClipboard,
true);
setUrl(QUrl("https://discord.com/app")); setUrl(QUrl("https://discord.com/app"));