mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-18 06:48:09 +00:00
Fix base href for electron env
This commit is contained in:
@ -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="./" />');
|
||||
|
Reference in New Issue
Block a user