Skip to content

Commit 7364e23

Browse files
author
Romain Lanz
committed
Return nothing if popup is not the desired purposed
1 parent 4361dd4 commit 7364e23

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/popup/popup.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ angular.module('angularify.semantic.popup', [])
1313
// convert to json
1414
var popup_meta_data = eval('(' + scope.popup + ')');
1515

16+
if (popup_meta_data === undefined) {
17+
return;
18+
}
19+
1620
var title = popup_meta_data['title'];
1721
if (title == undefined)
1822
title = '';
@@ -118,4 +122,4 @@ angular.module('angularify.semantic.popup', [])
118122
});
119123
}
120124
}
121-
});
125+
});

0 commit comments

Comments
 (0)