playground: superuser option is a string not a bool

While the bridge converts it from true to "require", it does not convert
false and our protocol documentation states that it should be a string.
This commit is contained in:
Jelle van der Waa 2024-04-18 14:57:21 +02:00 committed by Martin Pitt
parent f881405c00
commit 61e5addb28
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ document.addEventListener("DOMContentLoaded", () => {
document.querySelector(".super-channel .pf-v5-c-button").addEventListener("click", () => {
document.querySelector(".super-channel span").textContent = "checking...";
cockpit.spawn(["id"], { superuser: true })
cockpit.spawn(["id"], { superuser: "require" })
.then(data => {
console.log("done");
document.querySelector(".super-channel span").textContent = "result: " + data;