File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 "ignoreViews" : [
1313 " styleguide.html"
1414 ],
15+ "url" : " http://localhost:3000/" ,
1516
1617 "precmd" : " " ,
1718 "postcmd" : " "
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ let Importer = function() {
1010 this . dirJS = "" ;
1111 this . layoutFile = "" ;
1212 this . ignoreViews = [ ] ;
13+ this . url = false ;
1314
1415 this . typeCSS = "" ;
1516 this . typeJS = "" ;
@@ -44,8 +45,15 @@ let Importer = function() {
4445 * @return Promise Returns a promise, which returns the DOM content on accept
4546 */
4647 this . loadFile = function ( file ) {
48+
49+ let options = { } ;
50+
51+ if ( this . url ) {
52+ options = { url : this . url } ;
53+ }
54+
4755 // Load the file
48- return JSDOM . fromFile ( this . fixFilename ( file ) ) ;
56+ return JSDOM . fromFile ( this . fixFilename ( file ) , options ) ;
4957 } ;
5058
5159 /**
You can’t perform that action at this time.
0 commit comments