mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: exception in an interval
This commit is contained in:
parent
107ac88f15
commit
1a2070b4d9
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ export default DiscourseController.extend(ModalFunctionality, {
|
|||
"menubar=no,status=no,height=" + height + ",width=" + width + ",left=" + left + ",top=" + top);
|
||||
var self = this;
|
||||
var timer = setInterval(function() {
|
||||
if(w.closed) {
|
||||
if(!w || w.closed) {
|
||||
clearInterval(timer);
|
||||
self.set('authenticate', null);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue