idle: move to new api dir

This commit is contained in:
CanadaHonk 2023-01-02 12:23:41 +00:00
parent 04ff8d8d40
commit 00da694f3b
2 changed files with 4 additions and 1 deletions

View File

@ -143,6 +143,9 @@ export default async (CDP, { browserType }) => {
log(`idle API active (window id: ${windowId})`);
if (autoEnabled) startAuto();
const setWindowState = async state => await CDP.send('Browser.setWindowBounds', { windowId, bounds: { windowState: state }});
return {
hibernate,
sleep,

View File

@ -10,7 +10,7 @@ import { fileURLToPath } from 'url';
import Chromium from './browser/chromium.js';
import Firefox from './browser/firefox.js';
import IdleAPI from './lib/idle.js';
import IdleAPI from './api/idle.js';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);