|
@@ -204,7 +204,7 @@ class Http {
|
|
if( r.readyState != 4 )
|
|
if( r.readyState != 4 )
|
|
return;
|
|
return;
|
|
var s = try r.status catch( e : Dynamic ) null;
|
|
var s = try r.status catch( e : Dynamic ) null;
|
|
- if ( s != null ) {
|
|
|
|
|
|
+ if ( s != null && untyped __js__('"undefined" !== typeof window') ) {
|
|
// If the request is local and we have data: assume a success (jQuery approach):
|
|
// If the request is local and we have data: assume a success (jQuery approach):
|
|
var protocol = js.Browser.location.protocol.toLowerCase();
|
|
var protocol = js.Browser.location.protocol.toLowerCase();
|
|
var rlocalProtocol = ~/^(?:about|app|app-storage|.+-extension|file|res|widget):$/;
|
|
var rlocalProtocol = ~/^(?:about|app|app-storage|.+-extension|file|res|widget):$/;
|