Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #56 from chrishouse/master
Browse files Browse the repository at this point in the history
Fix bug that disallowed @import statements to use root relative paths
  • Loading branch information
Chuck Carpenter committed Apr 20, 2015
2 parents b3ce9de + 9cf14cb commit 123d60c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion js/rem.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@
importStatement;

while( (importStatement = importPattern.exec(sheetCSS)) !== null ){
importLinks.push( sheetPath + importStatement[1] );
if( importStatement[1].indexOf("/") === 0 ) { // check if the value of importStatement[1] is a root relative path, in which case it shouldn't be concatenated with sheetPath
importLinks.push( importStatement[1] );
} else {
importLinks.push( sheetPath + importStatement[1] );
}
}

if( current !== null && current.length !== 0 ){
Expand Down
2 changes: 1 addition & 1 deletion js/rem.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 123d60c

Please sign in to comment.