Small changes
This commit is contained in:
parent
c1fa136caa
commit
b30fb8b8e2
3 changed files with 55 additions and 51 deletions
|
@ -1,7 +1,8 @@
|
|||
var xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', 'https://dotcss.local/' + window.location.host.replace(/^www\./, '') + '.css');
|
||||
if(window.location.host.indexOf(".local") == -1){
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', 'https://dotcss.local/' + window.location.host.replace(/^www\./, '') + '.css');
|
||||
|
||||
xhr.onreadystatechange = function() {
|
||||
xhr.onreadystatechange = function() {
|
||||
if(xhr.readyState == 4) {
|
||||
if(xhr.status == 200) {
|
||||
var style = document.createElement('style');
|
||||
|
@ -22,6 +23,7 @@ xhr.onreadystatechange = function() {
|
|||
defaultXHR.send();
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
xhr.send();
|
||||
xhr.send();
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
var xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', 'https://dotjs.local/' + window.location.host.replace(/^www\./, '') + '.js');
|
||||
if(window.location.host.indexOf(".local") != -1){
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', 'https://dotjs.local/' + window.location.host.replace(/^www\./, '') + '.js');
|
||||
|
||||
xhr.onreadystatechange = function() {
|
||||
xhr.onreadystatechange = function() {
|
||||
if(xhr.readyState == 4) {
|
||||
if(xhr.status == 200) {
|
||||
var script = document.createElement('script');
|
||||
|
@ -22,6 +23,7 @@ xhr.onreadystatechange = function() {
|
|||
defaultXHR.send();
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
xhr.send();
|
||||
xhr.send();
|
||||
}
|
||||
|
|
|
@ -2,15 +2,15 @@
|
|||
|
||||
# Custom dir command
|
||||
function my_dir(){
|
||||
homeIcon=" "
|
||||
homeIcon=""
|
||||
wpPluginsIcon=".p."
|
||||
wpThemesIcon=".t."
|
||||
siteIcon=" "
|
||||
wpSiteIcon=" "
|
||||
magentoSiteIcon=" "
|
||||
dropboxIcon=" "
|
||||
seperator=" "
|
||||
root=" "
|
||||
siteIcon=""
|
||||
wpSiteIcon=""
|
||||
magentoSiteIcon=""
|
||||
dropboxIcon=""
|
||||
seperator=" "
|
||||
root=""
|
||||
# Gets the path.
|
||||
local current_path="$(print -P "%~")"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue