Ensure that clicking a link does not close the conversation

This commit is contained in:
Evan Hahn 2020-10-07 16:49:21 -05:00 committed by Josh Perez
parent 9002b21a6b
commit 776b500142
4 changed files with 0 additions and 19 deletions

View file

@ -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>

View file

@ -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);
},
};
})();

View file

@ -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
View file

@ -49,7 +49,6 @@ declare global {
_: typeof Underscore;
$: typeof jQuery;
extension: any;
moment: any;
imageToBlurHash: any;
autoOrientImage: any;