lbry-desktop/ui/util/set-progress-bar.js

16 lines
280 B
JavaScript
Raw Normal View History

2019-03-05 05:46:57 +01:00
// @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;