mirror of
https://github.com/lubosz/overte.git
synced 2025-04-08 21:42:24 +02:00
fix twitter and facebook links
This commit is contained in:
parent
62870d85d3
commit
64b8237bd6
1 changed files with 7 additions and 8 deletions
|
@ -25,13 +25,9 @@ Item {
|
|||
property bool isDesktop: false
|
||||
property string initialPage: ""
|
||||
property bool startingUp: true
|
||||
property bool removingPage: false
|
||||
property alias webView: webview
|
||||
property alias profile: webview.profile
|
||||
property bool remove: false
|
||||
property bool windowClosed: false
|
||||
property bool loadingStarted: false
|
||||
property bool loadingFinished: false
|
||||
property var urlList: []
|
||||
property var forwardList: []
|
||||
|
||||
|
@ -85,9 +81,12 @@ Item {
|
|||
id: displayUrl
|
||||
color: hifi.colors.baseGray
|
||||
font.pixelSize: 12
|
||||
verticalAlignment: Text.AlignLeft
|
||||
anchors {
|
||||
top: nav.bottom
|
||||
horizontalCenter: parent.horizontalCenter;
|
||||
left: parent.left
|
||||
leftMargin: 20
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -116,15 +115,15 @@ Item {
|
|||
forwardList.push(webview.url);
|
||||
webview.goBack();
|
||||
} else if (web.urlList.length > 0) {
|
||||
removingPage = true;
|
||||
var url = web.urlList.pop();
|
||||
loadUrl(url);
|
||||
} else if (fowardList.length == 1) {
|
||||
console.log("--------------> going foward <---------------");
|
||||
} else if (web.forwardList.length > 0) {
|
||||
var url = web.forwardList.pop();
|
||||
loadUrl(url);
|
||||
web.forwardList = [];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function closeWebEngine() {
|
||||
if (remove) {
|
||||
web.destroy();
|
||||
|
|
Loading…
Reference in a new issue