Skip to content

Commit

Permalink
fix: Fix code format.
Browse files Browse the repository at this point in the history
  • Loading branch information
GSMLG-BOT committed Nov 15, 2022
1 parent b98c611 commit 3bc9871
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/phoenix_webcomponent/.releaserc.yaml
Expand Up @@ -26,5 +26,5 @@ plugins:
test -z "${nextRelease.channel}" && npm publish || npm publish --tag "${nextRelease.channel}";
mix prepublish;
'publishCmd' : |
echo pubhlish phoenix_webcomponent ${nextRelease.version};
echo publish phoenix_webcomponent ${nextRelease.version};
mix hex.publish --yes
6 changes: 4 additions & 2 deletions apps/phoenix_webcomponent/assets/js/phoenix_webcomponent.js
@@ -1,6 +1,6 @@
import '@gsmlg/lit';

const PhxWCHook = {
export const PhxWCHook = {
mounted() {
const attrs = this.el.attributes;
const phxTarget = attrs["phx-target"].value;
Expand Down Expand Up @@ -40,4 +40,6 @@ const PhxWCHook = {
},
};

window.__PhxWCHook__ = PhxWCHook;
if (window) {
window.__PhxWCHook__ = PhxWCHook;
}

0 comments on commit 3bc9871

Please sign in to comment.