signal-desktop/js/chromium.js

16 lines
314 B
JavaScript
Raw Normal View History

/* global extension: false */
// eslint-disable-next-line func-names
2018-04-27 21:25:04 +00:00
(function() {
'use strict';
2018-04-27 21:25:04 +00:00
// Browser specific functions for Chrom*
window.extension = window.extension || {};
2014-05-21 02:21:07 +00:00
2018-04-27 21:25:04 +00:00
extension.windows = {
onClosed(callback) {
2018-04-27 21:25:04 +00:00
window.addEventListener('beforeunload', callback);
},
};
})();