import bb.cascades 1.4
Sheet {
peekEnabled: false
property alias url: webview.url
property bool authredir: true
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 (authredir === true) {
if (url.toString().match(/http\:\/\/.*#access_token\=/i)) {
// console.log("Matched url: " + url.toString());
webview.stop();
webview.url = url.toString();
authredir = false;
}