2020-03-20 20:28:31 +00:00
|
|
|
const { BrowserWindow } = require('electron');
|
2017-04-03 21:17:16 +00:00
|
|
|
|
|
|
|
class Foo {
|
2020-07-09 04:19:49 +00:00
|
|
|
set bar (value) { // eslint-disable-line accessor-pairs
|
2017-04-03 21:17:16 +00:00
|
|
|
if (!(value instanceof BrowserWindow)) {
|
2020-03-20 20:28:31 +00:00
|
|
|
throw new Error('setting error');
|
2017-04-03 21:17:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-20 20:28:31 +00:00
|
|
|
module.exports = new Foo();
|