Closed flatsiedatsie closed 4 years ago
The Power Settings add-ons has a reboot functionality. I changed it to use the internal api, per your request. But it doesn't seem to work anymore?
window.API.postJson('/system/actions', {action: 'restartSystem'}).catch(console.error);
Your URL is wrong. It should be /settings/system/actions.
/settings/system/actions
(Sorry, just realized I told you wrong before.)
No problem! The odd thing is it seemed to work before :-D
The Power Settings add-ons has a reboot functionality. I changed it to use the internal api, per your request. But it doesn't seem to work anymore?
window.API.postJson('/system/actions', {action: 'restartSystem'}).catch(console.error);