Fixed #44, no external object in Arch Linux webkit.

This commit is contained in:
Revertron
2021-04-15 21:44:34 +02:00
parent 5994622f59
commit 0e153ae47e
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "alfis"
version = "0.4.3"
version = "0.4.4"
authors = ["Revertron <alfis@revertron.com>"]
edition = "2018"
build = "build.rs"
+4
View File
@@ -149,6 +149,10 @@ function editDomain(domain) {
}
function onLoad() {
// Workaround for Arch Linux Webkit
// https://github.com/Boscop/web-view/issues/212#issuecomment-671055663
window.external={invoke:function(x){window.webkit.messageHandlers.external.postMessage(x);}};
external.invoke(JSON.stringify({cmd: 'loaded'}));
}