Skip to content

Commit

Permalink
Add support for reloading chrome extensions (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscolourenco committed Feb 20, 2017
1 parent 03b0976 commit 3c8a8ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/reloader.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,17 @@ exports.Reloader = class Reloader
if path.match(/\.(jpe?g|png|gif)$/i)
@reloadImages(path)
return
if options.isChromeExtension
@reloadChromeExtension
return
@reloadPage()


reloadPage: ->
@window.document.location.reload()

reloadChromeExtension: ->
@window.chrome.runtime.reload()

reloadImages: (path) ->
expando = @generateUniqueString()
Expand Down

0 comments on commit 3c8a8ed

Please sign in to comment.