Created
October 2, 2017 08:00
-
-
Save osvaldasvalutis/3745325cbf9393173f0255cc9c3bf4ea to your computer and use it in GitHub Desktop.
Service Worker for Middleman based websites – https://medium.com/kollegorna/service-worker-for-middleman-based-websites-7a4b7c6b038e
This file contains 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
const logMsg = (msg) => { | |
if('<%= app.config[:environment] %>' == 'development') { | |
console.log(msg); | |
} | |
}; | |
// ... | |
logMsg('Install event'); | |
// ... | |
logMsg('Activate event'); | |
// etc. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment