Skip to content

Commit

Permalink
playground: superuser option is a string not a bool
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jelly authored and martinpitt committed Apr 19, 2024
1 parent f881405 commit 61e5add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/playground/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 61e5add

Please sign in to comment.