Added support for 127.0.0.1 developement
This commit is contained in:
1 parent
c95c1b1a62
commit
6b7f28bc46
7 files changed
+29
-9
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user