From 6bb3fc38a4d67cf378e1b11839c4af327ebfccd5 Mon Sep 17 00:00:00 2001 From: Jesse MacFadyen Date: Thu, 4 Dec 2014 16:38:04 -0800 Subject: [PATCH] CB-7892 XHR to local files poly should only load/run once --- template/cordovalib/XHRHelper.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/template/cordovalib/XHRHelper.cs b/template/cordovalib/XHRHelper.cs index 62f49ea9..35913ebf 100644 --- a/template/cordovalib/XHRHelper.cs +++ b/template/cordovalib/XHRHelper.cs @@ -37,6 +37,9 @@ public void InjectScript() if (!win.__XHRShimAliases) { win.__XHRShimAliases = {}; } + else { + return; // already initialized, this happens when navigating to # + } win.__onXHRLocalCallback = function (responseCode, responseText, reqId) { if (win.__XHRShimAliases[reqId]){