Used string template instead of concatenation.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user