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:
parent
f881405c00
commit
61e5addb28
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue