Skip to content

Commit

Permalink
update: Bump to 1.0.6 JS widget script in differents package (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
codemers authored Oct 5, 2022
1 parent 8317216 commit a78d2c5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .changeset/nervous-fishes-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@feedbackfarm/js": patch
"@feedbackfarm/react": patch
"@feedbackfarm/wordpress": patch
---

update: Bump to 1.0.6 JS widget script in differents package
2 changes: 1 addition & 1 deletion docs/widgets/integrate-with-your-html-website.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ You then want to add the script and the attributes to the button
<html>
<head>
<script
src="https://unpkg.com/@feedbackfarm/[email protected].5/dist/widget.js"
src="https://unpkg.com/@feedbackfarm/[email protected].6/dist/widget.js"
defer
></script>
</head>
Expand Down
2 changes: 1 addition & 1 deletion packages/js/demo/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<html>
<head>
<title>HTML Widget Demo</title>
<script src="https://unpkg.com/@feedbackfarm/[email protected].5/dist/widget.js" defer></script>
<script src="https://unpkg.com/@feedbackfarm/[email protected].6/dist/widget.js" defer></script>
</head>
<body>
<button data-feedback-farm data-feedback-farm-project-id="123">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default function FeedbackFarm(props: Props) {

const script = document.createElement("script");
script.id = "feedback-farm-script";
script.src = "https://unpkg.com/@feedbackfarm/[email protected].5/dist/widget.js";
script.src = "https://unpkg.com/@feedbackfarm/[email protected].6/dist/widget.js";
script.defer = true;
document.head.appendChild(script);
}, []);
Expand Down
2 changes: 1 addition & 1 deletion packages/wordpress/feedback-farm.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
**/

function feedback_farm_enqueue_script() {
wp_register_script( 'feedback-farm', "https://unpkg.com/@feedbackfarm/[email protected].5/dist/widget.js", [], null, true);
wp_register_script( 'feedback-farm', "https://unpkg.com/@feedbackfarm/[email protected].6/dist/widget.js", [], null, true);
wp_enqueue_script('feedback-farm');
}
add_action('wp_enqueue_scripts', 'feedback_farm_enqueue_script');
Expand Down

1 comment on commit a78d2c5

@vercel
Copy link

@vercel vercel bot commented on a78d2c5 Oct 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.