13 lines
297 B
JavaScript
13 lines
297 B
JavaScript
/* 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);
|
|
},
|
|
};
|
|
})();
|