Fix base href for electron env

This commit is contained in:
ziajka
2019-01-04 10:58:35 +01:00
parent f4fbfe1ed3
commit d7529e93fd
3 changed files with 7 additions and 5 deletions

View File

@ -13,7 +13,7 @@
if (userAgent.indexOf(' electron/') > -1) {
var base = document.getElementsByTagName('base');
if(base.length > 0) {
base.href ='./';
base[0].href ='./';
}
else {
document.write('<base href="./" />');