-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: Bump to 1.0.6 JS widget script in differents package (#51)
- Loading branch information
Showing
5 changed files
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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); | ||
}, []); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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'); | ||
|
a78d2c5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
feedback-farm-widget – ./
feedback-farm-widget.vercel.app
feedback-farm-widget-feedback-farm.vercel.app
feedback-farm-widget-git-main-feedback-farm.vercel.app
widget.feedback.farm