Fixed #44, no external object in Arch Linux webkit.
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "alfis"
|
name = "alfis"
|
||||||
version = "0.4.3"
|
version = "0.4.4"
|
||||||
authors = ["Revertron <alfis@revertron.com>"]
|
authors = ["Revertron <alfis@revertron.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|||||||
@@ -149,6 +149,10 @@ function editDomain(domain) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function onLoad() {
|
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'}));
|
external.invoke(JSON.stringify({cmd: 'loaded'}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user