mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 12:43:52 +08:00
Unbind only from newPost
This commit is contained in:
parent
0974516c31
commit
eb0ab69cf3
4
extensions/pusher/js/forum/dist/extension.js
vendored
4
extensions/pusher/js/forum/dist/extension.js
vendored
|
@ -74,7 +74,7 @@ System.register('flarum/pusher/main', ['flarum/extend', 'flarum/app', 'flarum/co
|
|||
});
|
||||
|
||||
extend(context, 'onunload', function () {
|
||||
return channels.main.unbind();
|
||||
return channels.main.unbind('newPost');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -151,7 +151,7 @@ System.register('flarum/pusher/main', ['flarum/extend', 'flarum/app', 'flarum/co
|
|||
});
|
||||
|
||||
extend(context, 'onunload', function () {
|
||||
return channels.main.unbind();
|
||||
return channels.main.unbind('newPost');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -58,7 +58,7 @@ app.initializers.add('flarum-pusher', () => {
|
|||
}
|
||||
});
|
||||
|
||||
extend(context, 'onunload', () => channels.main.unbind());
|
||||
extend(context, 'onunload', () => channels.main.unbind('newPost'));
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -127,7 +127,7 @@ app.initializers.add('flarum-pusher', () => {
|
|||
}
|
||||
});
|
||||
|
||||
extend(context, 'onunload', () => channels.main.unbind());
|
||||
extend(context, 'onunload', () => channels.main.unbind('newPost'));
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user