2018-07-07 00:48:14 +00:00
|
|
|
/* global extension: false */
|
|
|
|
|
|
|
|
// eslint-disable-next-line func-names
|
2018-04-27 21:25:04 +00:00
|
|
|
(function() {
|
|
|
|
'use strict';
|
2018-07-07 00:48:14 +00:00
|
|
|
|
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 = {
|
2018-07-07 00:48:14 +00:00
|
|
|
onClosed(callback) {
|
2018-04-27 21:25:04 +00:00
|
|
|
window.addEventListener('beforeunload', callback);
|
|
|
|
},
|
|
|
|
};
|
|
|
|
})();
|