26 lines
No EOL
798 B
QML
26 lines
No EOL
798 B
QML
import bb.cascades 1.4
|
|
|
|
Sheet {
|
|
peekEnabled: false
|
|
property alias url: webview.url
|
|
Page {
|
|
ScrollView {
|
|
scrollViewProperties.pinchToZoomEnabled: true
|
|
scrollViewProperties.scrollMode: ScrollMode.Both
|
|
WebView {
|
|
id: webview
|
|
settings.zoomToFitEnabled: true
|
|
|
|
onUrlChanged: {
|
|
//console.log("::" + url)
|
|
// Workaround for 10.3.3
|
|
if (url.toString().match(/http\:\/\/.*#access_token\=/i)) {
|
|
//console.log("Matched url: " + url.toString());
|
|
webview.stop();
|
|
webview.url = url.toString();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |