Linting + docs
This commit is contained in:
parent
9bfb3754c1
commit
1e57adf6d4
1 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
||||||
// This somewhat mysterious module
|
// This somewhat mysterious module will load a json string
|
||||||
module.exports = function(source) {
|
// and then extract only the 'notifications' part. This is
|
||||||
|
// meant to be used to load the partial i18n we need for
|
||||||
|
// the service worker.
|
||||||
|
module.exports = function (source) {
|
||||||
var object = JSON.parse(source)
|
var object = JSON.parse(source)
|
||||||
var smol = {
|
var smol = {
|
||||||
notifications: object.notifications || {}
|
notifications: object.notifications || {}
|
||||||
|
|
Loading…
Reference in a new issue