fix snap app issue

This commit is contained in:
SamGondelman 2019-01-18 10:48:20 -08:00
parent 0ab13f1e48
commit d6f0fbd17b

View file

@ -134,8 +134,7 @@ Item {
if (isWebPage) {
var webUrl = tabletApps.get(currentApp).appWebUrl;
var scriptUrl = tabletApps.get(currentApp).scriptUrl;
loadSource("hifi/tablet/TabletWebView.qml");
loadWebUrl(webUrl, scriptUrl);
loadWebBase(webUrl, scriptUrl);
} else {
loader.load(tabletApps.get(currentApp).appUrl);
}
@ -150,16 +149,6 @@ Item {
tabletRoot.openBrowser = newWindow;
}
function loadWebUrl(url, injectedJavaScriptUrl) {
tabletApps.clear();
loader.item.url = url;
loader.item.scriptURL = injectedJavaScriptUrl;
tabletApps.append({"appUrl": "TabletWebView.qml", "isWebUrl": true, "scriptUrl": injectedJavaScriptUrl, "appWebUrl": url});
if (loader.item.hasOwnProperty("closeButtonVisible")) {
loader.item.closeButtonVisible = false;
}
}
// used to send a message from qml to interface script.
signal sendToScript(var message);