Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 261ce10

Browse files
authored
Merge pull request #32 from ahabeb/master
navigate to home after 200ms
2 parents 22cc497 + fd16e79 commit 261ce10

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

widget/index.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ <h2>Success!</h2>
5757
}
5858
}]);
5959

60-
webviewPluginApp.controller('webviewPluginCtrl', ["$scope", "$sce", function ($scope, $sce) {
60+
webviewPluginApp.controller('webviewPluginCtrl', ["$scope", "$sce", "$timeout", function ($scope, $sce, $timeout) {
6161
function dataLoadedHandler(result) {
6262
var content = null;
6363
$scope.loading = 1;
@@ -78,7 +78,10 @@ <h2>Success!</h2>
7878
buildfire.navigation.openWindow(content.url, "_blank");
7979
else
8080
buildfire.navigation.openWindow(content.url, "_system");
81-
buildfire.navigation.goBack();
81+
82+
$timeout(function () {
83+
buildfire.navigation.goBack();
84+
}, 200);
8285
}
8386
}
8487
if (!$scope.$$phase && !$scope.$root.$$phase) {

0 commit comments

Comments
 (0)