15 lines
280 B
JavaScript
15 lines
280 B
JavaScript
// @if TARGET='app'
|
|
import { remote } from 'electron';
|
|
|
|
const win = remote.getCurrentWindow();
|
|
|
|
const setProgressBar = progress => {
|
|
win.setProgressBar(progress);
|
|
};
|
|
// @endif
|
|
|
|
// @if TARGET='web'
|
|
const setProgressBar = progress => {};
|
|
// @endif
|
|
|
|
export default setProgressBar;
|