Ensure that clicking a link does not close the conversation
This commit is contained in:
parent
9002b21a6b
commit
776b500142
4 changed files with 0 additions and 19 deletions
|
@ -346,7 +346,6 @@
|
|||
<script type='text/javascript' src='js/expiring_messages.js'></script>
|
||||
<script type='text/javascript' src='js/expiring_tap_to_view_messages.js'></script>
|
||||
|
||||
<script type='text/javascript' src='js/chromium.js'></script>
|
||||
<script type='text/javascript' src='js/message_controller.js'></script>
|
||||
|
||||
<script type='text/javascript' src='js/views/react_wrapper_view.js'></script>
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
/* global extension: false */
|
||||
|
||||
// eslint-disable-next-line func-names
|
||||
(function() {
|
||||
// Browser specific functions for Chrom*
|
||||
window.extension = window.extension || {};
|
||||
|
||||
extension.windows = {
|
||||
onClosed(callback) {
|
||||
window.addEventListener('beforeunload', callback);
|
||||
},
|
||||
};
|
||||
})();
|
|
@ -377,10 +377,6 @@ Whisper.ConversationView = Whisper.View.extend({
|
|||
props: this.getPropsForAttachmentList(),
|
||||
});
|
||||
|
||||
window.extension.windows.onClosed(() => {
|
||||
this.unload('windows closed');
|
||||
});
|
||||
|
||||
this.setupHeader();
|
||||
this.setupTimeline();
|
||||
this.setupCompositionArea({ attachmentListEl: attachmentListEl[0] });
|
||||
|
|
1
ts/window.d.ts
vendored
1
ts/window.d.ts
vendored
|
@ -49,7 +49,6 @@ declare global {
|
|||
_: typeof Underscore;
|
||||
$: typeof jQuery;
|
||||
|
||||
extension: any;
|
||||
moment: any;
|
||||
imageToBlurHash: any;
|
||||
autoOrientImage: any;
|
||||
|
|
Loading…
Reference in a new issue