Skip to content

Commit

Permalink
fix: js exception when reloading async chunk (webpack-contrib#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rulexec committed May 22, 2020
1 parent 1ffc393 commit aef0374
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hmr/hotModuleReplacement.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ function getReloadUrl(href, src) {
}

function reloadStyle(src) {
if (!src) {
return false;
}

const elements = document.querySelectorAll('link');
let loaded = false;

Expand Down

0 comments on commit aef0374

Please sign in to comment.