mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 09:04:00 +08:00
FIX: exception in an interval
This commit is contained in:
parent
107ac88f15
commit
1a2070b4d9
|
@ -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 New Issue
Block a user