diff --git a/assets/js/admin/settings-views-html-settings-tax.js b/assets/js/admin/settings-views-html-settings-tax.js
index 11cc3a30be9..f3f1468f855 100644
--- a/assets/js/admin/settings-views-html-settings-tax.js
+++ b/assets/js/admin/settings-views-html-settings-tax.js
@@ -63,7 +63,7 @@
this.qty_pages = Math.ceil( this.model.get( 'rates' ).length / this.per_page );
this.listenTo( this.model, 'change', this.setUnloadConfirmation );
this.listenTo( this.model, 'saved', this.clearUnloadConfirmation );
- window.addEventListener( 'beforeunload', this.unloadConfirmation );
+ $(window).on( 'beforeunload', this.unloadConfirmation );
},
setUnloadConfirmation : function() {
this.needsUnloadConfirm = true;