plusui-native-core 0.1.41 → 0.1.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1299,29 +1299,6 @@ void Window::navigate(const std::string &url) {
|
|
|
1299
1299
|
webkit_web_view_load_uri(pImpl->gtkWebView, url.c_str());
|
|
1300
1300
|
}
|
|
1301
1301
|
#endif
|
|
1302
|
-
|
|
1303
|
-
// Apply scrollbar hiding CSS if configured
|
|
1304
|
-
if (!pImpl->config.scrollbars) {
|
|
1305
|
-
std::string hideScrollbars = kHideScrollbarsScript;
|
|
1306
|
-
// Schedule this to run after a short delay to ensure DOM is ready
|
|
1307
|
-
#ifdef _WIN32
|
|
1308
|
-
if (pImpl->ready && pImpl->webview) {
|
|
1309
|
-
pImpl->webview->ExecuteScript(
|
|
1310
|
-
std::wstring(hideScrollbars.begin(), hideScrollbars.end()).c_str(),
|
|
1311
|
-
nullptr);
|
|
1312
|
-
}
|
|
1313
|
-
#elif defined(__APPLE__)
|
|
1314
|
-
if (pImpl->wkWebView) {
|
|
1315
|
-
NSString *js = [NSString stringWithUTF8String:hideScrollbars.c_str()];
|
|
1316
|
-
[pImpl->wkWebView evaluateJavaScript:js completionHandler:nil];
|
|
1317
|
-
}
|
|
1318
|
-
#else
|
|
1319
|
-
if (pImpl->gtkWebView) {
|
|
1320
|
-
webkit_web_view_run_javascript(pImpl->gtkWebView, hideScrollbars.c_str(),
|
|
1321
|
-
nullptr, nullptr, nullptr);
|
|
1322
|
-
}
|
|
1323
|
-
#endif
|
|
1324
|
-
}
|
|
1325
1302
|
}
|
|
1326
1303
|
|
|
1327
1304
|
void Window::loadURL(const std::string &url) {
|