mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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);
|
"menubar=no,status=no,height=" + height + ",width=" + width + ",left=" + left + ",top=" + top);
|
||||||
var self = this;
|
var self = this;
|
||||||
var timer = setInterval(function() {
|
var timer = setInterval(function() {
|
||||||
if(w.closed) {
|
if(!w || w.closed) {
|
||||||
clearInterval(timer);
|
clearInterval(timer);
|
||||||
self.set('authenticate', null);
|
self.set('authenticate', null);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user