Last active
August 29, 2015 14:04
-
-
Save joebillings/dcf378c8a58dba127991 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = ""; | |
// if external stylesheets are on we need to know if the sheets are in a directory so we can set the path correctly | |
if(fwDocument.fwExternalStylesheets) | |
{ | |
var links = fwDocument.fwTags.fwFindAll("link"); | |
for(var i = 0; i < links.length; i++) | |
{ | |
if(/^"?css\//.test(links[i].href.toString())) //" | |
{ | |
path = "../"; | |
break; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment