11 lines
244 B
JavaScript
11 lines
244 B
JavaScript
const { BrowserWindow } = require('electron');
|
|
|
|
class Foo {
|
|
set bar (value) { // eslint-disable-line accessor-pairs
|
|
if (!(value instanceof BrowserWindow)) {
|
|
throw new Error('setting error');
|
|
}
|
|
}
|
|
}
|
|
|
|
module.exports = new Foo();
|