nav tabs on admin dashboard
This commit is contained in:
6
node_modules/style-loader/lib/addStyleUrl.js
generated
vendored
6
node_modules/style-loader/lib/addStyleUrl.js
generated
vendored
@@ -18,6 +18,8 @@ module.exports = function addStyleUrl (url, options) {
|
||||
|
||||
options.attrs = typeof options.attrs === "object" ? options.attrs : {};
|
||||
|
||||
options.hmr = typeof options.hmr === 'undefined' ? true : options.hmr;
|
||||
|
||||
var link = document.createElement("link");
|
||||
|
||||
link.rel = "stylesheet";
|
||||
@@ -30,7 +32,7 @@ module.exports = function addStyleUrl (url, options) {
|
||||
|
||||
head.appendChild(link);
|
||||
|
||||
if (module.hot) {
|
||||
if (options.hmr && module.hot) {
|
||||
return function(url) {
|
||||
if(typeof url === "string") {
|
||||
link.href = url;
|
||||
@@ -39,4 +41,4 @@ module.exports = function addStyleUrl (url, options) {
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user