Add suggest button to config editor

This commit is contained in:
Alex X
2025-12-27 12:34:08 +03:00
parent 1cd5517026
commit 654e78b7c5
+5
View File
@@ -23,6 +23,7 @@
<main> <main>
<div> <div>
<button id="save">Save & Restart</button> <button id="save">Save & Restart</button>
<button id="suggest" title="ctrl + space">Suggest</button>
</div> </div>
</main> </main>
<div id="config"></div> <div id="config"></div>
@@ -1198,6 +1199,10 @@
} }
}); });
document.getElementById('suggest').addEventListener('click', () => {
editor.trigger('source', 'editor.action.triggerSuggest', {});
});
(async () => { (async () => {
try { try {
const r = await fetch('https://go2rtc.org/schema.json', {cache: 'no-cache'}); const r = await fetch('https://go2rtc.org/schema.json', {cache: 'no-cache'});