Used string template instead of concatenation.

This commit is contained in:
Michael George Attard
2017-10-26 21:20:30 +02:00
parent cae40b44e6
commit 7351133542

View File

@@ -7,9 +7,7 @@ const electron = require('electron')
const config = require('../config')
const log = require('./log')
const ANNOUNCEMENT_URL = config.ANNOUNCEMENT_URL +
'?version=' + config.APP_VERSION +
'&platform=' + process.platform
const ANNOUNCEMENT_URL = `${config.ANNOUNCEMENT_URL}?version=${config.APP_VERSION}&platform=${process.platform}`;
/**
* In certain situations, the WebTorrent team may need to show an announcement to