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:
loudoweb
2018-10-29 23:52:38 +01:00
committed by Joshua Granick
parent 85934e498e
commit 298d2b9ae6

View File

@@ -42,7 +42,7 @@ class HTML5HTTPRequest {
public function new () {
validStatus0 = ~/Tizen/gi.match (Browser.window.navigator.userAgent);
validStatus0 = #if forceLocal true #else ~/Tizen/gi.match (Browser.window.navigator.userAgent) #end;
}