Add forceLocal define to allow loading locally
Compiling with -DforceLocal allow files to be served locally when browser supports this. Use case : Cordova use a webview and many files can't be loaded without allowing http status 0 as successful.
This commit is contained in:
@@ -42,7 +42,7 @@ class HTML5HTTPRequest {
|
|||||||
|
|
||||||
public function new () {
|
public function new () {
|
||||||
|
|
||||||
validStatus0 = ~/Tizen/gi.match (Browser.window.navigator.userAgent);
|
validStatus0 = #if forceLocal true #else ~/Tizen/gi.match (Browser.window.navigator.userAgent) #end;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -565,4 +565,4 @@ class HTML5HTTPRequest {
|
|||||||
var promise:Dynamic;
|
var promise:Dynamic;
|
||||||
var uri:String;
|
var uri:String;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user