summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2018-01-02 23:53:57 +0100
committerKali Kaneko <kali@leap.se>2018-01-06 19:57:55 +0100
commit501379ee09c3510d1737d6292a2dd5732c19dfef (patch)
tree231f16778e10f12d9514126a8a121e938289f880 /ui
parenteb431c28a9e7df0cc8c2a701b9d0f053739dcbb4 (diff)
[refactor] webengine entrypoint
this commit deprecates qtwebkit usage.
Diffstat (limited to 'ui')
-rw-r--r--ui/app/index.html12
1 files changed, 11 insertions, 1 deletions
diff --git a/ui/app/index.html b/ui/app/index.html
index d500e369..2cd0bf17 100644
--- a/ui/app/index.html
+++ b/ui/app/index.html
@@ -10,5 +10,15 @@
<body>
<div id="app"></div>
<script src="app.bundle.js"></script>
+ <script src="qrc:///qtwebchannel/qwebchannel.js"></script>
+ <script>
+ function _onload() {
+ window.webChannel = new QWebChannel(qt.webChannelTransport, function (channel) {
+ window.bitmaskApp = channel.objects.bitmaskApp;
+ });
+ console.log(window.bitmaskApp);
+ }
+ window.onload = _onload;
+ </script>
</body>
-</html> \ No newline at end of file
+</html>