Merge pull request #14735 from SamGondelman/snap

Case 20724: Fix Snap app settings issue
This commit is contained in:
Jeff Clinton 2019-01-18 13:00:18 -08:00 committed by GitHub
commit 09b16d2d7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);