Linux; do not call setOnJSBeforeUnloadCallback till we get a new dullahan for Linux.

master
Nicky 2021-08-10 15:40:23 +02:00
parent eb7ba480b6
commit 1dfdcb8566
1 changed files with 2 additions and 0 deletions

View File

@ -533,7 +533,9 @@ void MediaPluginCEF::receiveMessage(const char* message_string)
mCEFLib->setOnCursorChangedCallback(std::bind(&MediaPluginCEF::onCursorChangedCallback, this, std::placeholders::_1));
mCEFLib->setOnRequestExitCallback(std::bind(&MediaPluginCEF::onRequestExitCallback, this));
mCEFLib->setOnJSDialogCallback(std::bind(&MediaPluginCEF::onJSDialogCallback, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3));
#ifndef LL_LINUX
mCEFLib->setOnJSBeforeUnloadCallback(std::bind(&MediaPluginCEF::onJSBeforeUnloadCallback, this));
#endif
dullahan::dullahan_settings settings;
#if LL_WINDOWS