Skip to content

Commit

Permalink
Update the selector of the main div
Browse files Browse the repository at this point in the history
Remove the true attribute since it does not exist anymore. This results in an undefined phx id.
  • Loading branch information
robindrost authored Sep 14, 2023
1 parent c513e77 commit 1b8cfef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion priv/templates/utilities/phoenix-liveview.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default class Liveview {
let doc = parseHTML(body);
let csrfToken = doc.find('meta[name="csrf-token"]').attr("content");

let phxMain = doc.find('div[data-phx-main="true"]');
let phxMain = doc.find('div[data-phx-main]');
let phxId = phxMain.attr("id");
let phxSession = phxMain.attr("data-phx-session");
let phxStatic = phxMain.attr("data-phx-static");
Expand Down

0 comments on commit 1b8cfef

Please sign in to comment.