cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [1/9] git commit: [CB-3406] InAppBrowser script not enabled in time (cherry picked from commit 3c157b6c58822c573dc6290d9a0ca809eb8a4cc0)
Date Fri, 26 Apr 2013 22:13:48 GMT
Updated Branches:
  refs/heads/master 3c157b6c5 -> f35aa9fa1


[CB-3406] InAppBrowser script not enabled in time
(cherry picked from commit 3c157b6c58822c573dc6290d9a0ca809eb8a4cc0)


Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/8242689e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/8242689e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/8242689e

Branch: refs/heads/master
Commit: 8242689ed5372cca3eed5272c6b75f74ad0818da
Parents: 12c4ed1
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Tue Apr 23 14:45:46 2013 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Tue Apr 23 14:53:59 2013 -0700

----------------------------------------------------------------------
 templates/standalone/Plugins/InAppBrowser.cs |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/8242689e/templates/standalone/Plugins/InAppBrowser.cs
----------------------------------------------------------------------
diff --git a/templates/standalone/Plugins/InAppBrowser.cs b/templates/standalone/Plugins/InAppBrowser.cs
index 73f4832..2741355 100644
--- a/templates/standalone/Plugins/InAppBrowser.cs
+++ b/templates/standalone/Plugins/InAppBrowser.cs
@@ -120,14 +120,13 @@ namespace WPCordovaClassLib.Cordova.Commands
                             if (grid != null)
                             {
                                 browser = new WebBrowser();
-                                browser.Navigate(loc);
-
+                                browser.IsScriptEnabled = true;
                                 browser.LoadCompleted += new System.Windows.Navigation.LoadCompletedEventHandler(browser_LoadCompleted);
 
                                 browser.Navigating += new EventHandler<NavigatingEventArgs>(browser_Navigating);
                                 browser.NavigationFailed += new System.Windows.Navigation.NavigationFailedEventHandler(browser_NavigationFailed);
                                 browser.Navigated += new EventHandler<System.Windows.Navigation.NavigationEventArgs>(browser_Navigated);
-                                browser.IsScriptEnabled = true;
+                                browser.Navigate(loc);
                                 //browser.IsGeolocationEnabled = opts.isGeolocationEnabled;
                                 grid.Children.Add(browser);
                             }


Mime
View raw message