File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 148
148
}
149
149
150
150
if ( ext == "css" ) {
151
- hide . Ide . inst . reloadCss ( ) ;
151
+ hide . Ide . inst . reloadCss ( file ) ;
152
152
} ;
153
153
} ) ;
154
154
</ script >
Original file line number Diff line number Diff line change @@ -793,11 +793,13 @@ class Ide extends hide.tools.IdeData {
793
793
js. Browser .location .reload ();
794
794
}
795
795
796
- public function reloadCss () {
796
+ public function reloadCss (path : String = null ) {
797
797
var css = new js.jquery. JQuery (' link[type="text/css"]' );
798
798
css .each (function (i , e ) : Void {
799
799
var link : js.html. LinkElement = cast e ;
800
- link .href = link .href + " ?" + haxe. Timer .stamp ();
800
+ if (path == null || StringTools .contains (link .href , path )) {
801
+ link .href = link .href + " ?" + haxe. Timer .stamp ();
802
+ }
801
803
});
802
804
}
803
805
You can’t perform that action at this time.
0 commit comments