Skip to content

Commit

Permalink
Merge pull request #7 from robindrost/main
Browse files Browse the repository at this point in the history
Update the selector of the main div
  • Loading branch information
dallagi authored Sep 14, 2023
2 parents c513e77 + 1b8cfef commit 88356d7
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 88356d7

Please sign in to comment.