mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
Merge pull request #1053 from NativeScript/web-view-utf
Delete semicolons.
This commit is contained in:
@ -104,7 +104,7 @@ export class WebView extends common.WebView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var baseUrl = `file:///${path.substring(0, path.lastIndexOf('/') + 1) }`;
|
var baseUrl = `file:///${path.substring(0, path.lastIndexOf('/') + 1) }`;
|
||||||
this._android.loadDataWithBaseURL(baseUrl, content, "text/html;", "utf-8", null);
|
this._android.loadDataWithBaseURL(baseUrl, content, "text/html", "utf-8", null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public _loadHttp(src: string) {
|
public _loadHttp(src: string) {
|
||||||
@ -121,7 +121,7 @@ export class WebView extends common.WebView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var baseUrl = `file:///${fs.knownFolders.currentApp().path}/`;
|
var baseUrl = `file:///${fs.knownFolders.currentApp().path}/`;
|
||||||
this._android.loadDataWithBaseURL(baseUrl, src, "text/html;", "utf-8", null);
|
this._android.loadDataWithBaseURL(baseUrl, src, "text/html", "utf-8", null);
|
||||||
}
|
}
|
||||||
|
|
||||||
get canGoBack(): boolean {
|
get canGoBack(): boolean {
|
||||||
|
Reference in New Issue
Block a user