Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions hotModuleReplacement.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module.exports = function(publicPath, outputFilename) {
if (document) {
var origin = document.location.protocol + '//' + document.location.hostname + (document.location.port ? ':' + document.location.port: '');
var newHref = origin + publicPath + outputFilename
var origin = document.location.protocol +
'//' + document.location.hostname + (document.location.port ? ':' + document.location.port: '');
var newHref = origin + publicPath + outputFilename;
var styleSheets = document.getElementsByTagName('link');

//update the stylesheet corresponding to `outputFilename`
Expand All @@ -20,4 +21,4 @@ module.exports = function(publicPath, outputFilename) {
}
}
}
}
};
Loading