Added support for 127.0.0.1 developement

This commit is contained in:
CommanderRedYT committed 2020-11-07 13:53:37 +01:00
1 parent c95c1b1a62
commit 6b7f28bc46
7 files changed
+29 -9

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
function addHTML() {
if (window.location.protocol == 'file:' || window.location.hostname == '127.0.0.1') {
var filename = document.getElementById("addhtml")
filename += ".html"
document.getElementById("addhtml").href = filename;
console.log(filename);
return false;
}
}
function addIndex() {
if (window.location.protocol == 'file:' || window.location.hostname == '127.0.0.1') {
var filename = document.getElementById("addindex")
filename += "index.html"
document.getElementById("addindex").href = filename;
console.log(filename);
return false;
}
}