Fix zoneminder.com url getting undefined being added to it

This commit is contained in:
Isaac Connor 2020-02-22 10:50:00 -05:00
parent 6d5fcd15ff
commit d7f8f201be
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ function getPopupSize( tag, width, height ) {
}
function zmWindow(sub_url) {
var zmWin = window.open( 'https://www.zoneminder.com'+sub_url, 'ZoneMinder' );
var zmWin = window.open( 'https://www.zoneminder.com'+(sub_url?sub_url:''), 'ZoneMinder' );
if ( ! zmWin ) {
// if popup blocking is enabled, the popup won't be defined.
console.log("Please disable popup blocking.");