Merge branch 'webview-js' of github.com:druiz17/hifi into tabletwebview-fix-links

This commit is contained in:
Dante Ruiz 2017-05-01 21:58:09 +01:00
commit 62870d85d3
3 changed files with 13 additions and 6 deletions

View file

@ -90,6 +90,13 @@ Item {
horizontalCenter: parent.horizontalCenter;
}
}
MouseArea {
anchors.fill: parent
preventStealing: true
propagateComposedEvents: true
}
}
ListModel {

View file

@ -92,16 +92,16 @@ Item {
}
function loadWebBase() {
loader.source = "";
loader.source = "TabletWebView.qml";
loader.source = "";
loader.source = "TabletWebView.qml";
}
function returnToPreviousApp() {
tabletApps.remove(currentApp);
var isWebPage = tabletApps.get(currentApp).isWebUrl;
if (isWebPage) {
var webUrl = tabletApps.get(currentApp).appWebUrl;
var scriptUrl = tabletApps.get(currentApp).scriptUrl;
var webUrl = tabletApps.get(currentApp).appWebUrl;
var scriptUrl = tabletApps.get(currentApp).scriptUrl;
loadSource("TabletWebView.qml");
loadWebUrl(webUrl, scriptUrl);
} else {

View file

@ -39,8 +39,8 @@ Windows.ScrollingWindow {
}
function loadWebBase() {
loader.source = "";
loader.source = "WindowWebView.qml";
loader.source = "";
loader.source = "WindowWebView.qml";
}
function loadWebUrl(url, injectedJavaScriptUrl) {