Last active
December 20, 2017 05:07
-
-
Save lachlanagnew/ba462f4f9122033d085e24cf15aa081d to your computer and use it in GitHub Desktop.
Add files that shall be accessed by the serviceworker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#config/initializers/serviceworker.rb | |
WebPushDemo::Application.configure do | |
config.serviceworker.routes.draw do | |
# map to assets implicitly | |
match "/serviceworker.js" | |
match "/manifest.json" | |
match "/logo.png" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment