Skip to content

Commit

Permalink
Merge pull request #36 from ermik/fix-reload-regex
Browse files Browse the repository at this point in the history
Fix file reload matching workflow

@ermik Thanks!
  • Loading branch information
HaNdTriX authored May 3, 2020
2 parents ea713a3 + 3d70eb5 commit bfe0ba9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
const port = /* PLACEHOLDER-PORT */ 35729 /* PLACEHOLDER-PORT */
const reconnectTime = /* PLACEHOLDER-RECONNECTTIME */ 3000 /* PLACEHOLDER-RECONNECTTIME */
const quiet = /* PLACEHOLDER-QUIET */ false /* PLACEHOLDER-QUIET */
const fileRegex = /[^"]*\.[a-zA-Z]+/g

connect()

Expand Down Expand Up @@ -119,8 +120,7 @@
function getManifestFileDeps () {
const manifest = (browser || chrome).runtime.getManifest()
const manifestStr = JSON.stringify(manifest)
const fileRegex = /[^"]*\.[a-zA-Z]+/g
return manifestStr.match(fileRegex)
return manifestStr.match(fileRegex) || []
}

/**
Expand Down

0 comments on commit bfe0ba9

Please # to comment.