Skip to content

Commit

Permalink
fix(routes): serve client.js
Browse files Browse the repository at this point in the history
  • Loading branch information
moklick committed Feb 14, 2018
1 parent a8d8aec commit 59b1f87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/push/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ function init(app, db, awaiting_moderation) {

// serve static js files
app.use('/embed.js', send_file('build/embed.js'));
app.use('/client.js', send_file('build/client.js'));
app.use('/push.js', send_string(fs.readFileSync('src/embed/push.js', 'utf-8')
.replace('%VAPID_PUBLIC_KEY%', config.notify.webpush.vapid_public_key)
.replace('%SCHNACK_HOST%', config.schnack_host), true));
Expand Down

0 comments on commit 59b1f87

Please sign in to comment.