Skip to content

Commit

Permalink
Merge pull request #7 from newfold-labs/update/api-endpoint
Browse files Browse the repository at this point in the history
Update/api endpoint
  • Loading branch information
circlecube authored Oct 13, 2023
2 parents 06909ff + edc3650 commit 3f93e09
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/CTB.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct( Container $container ) {
* @return void
*/
public function ctb_scripts() {
$assetsDir = container()->plugin()->url . 'vendor/newfold-labs/wp-module-global-ctb/includes/assets/';
$assetsDir = container()->plugin()->url . 'vendor/newfold-labs/wp-module-global-ctb/static/';

// load the a11y dialog lib
wp_register_script(
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion includes/assets/ctb.js → static/ctb.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

// handle click to receive ctb iframe url
window.fetch(
`${window.NewfoldRuntime.restUrl}/newfold-ctb/v2/ctb/${ctbId}`,
`${window.NewfoldRuntime.restUrl}newfold-ctb/v2/ctb/${ctbId}`,
{
credentials: 'same-origin',
headers: {
Expand Down

0 comments on commit 3f93e09

Please sign in to comment.