Skip to content

Commit

Permalink
also update other references to values in sdk object in favor of newe…
Browse files Browse the repository at this point in the history
…r values.
  • Loading branch information
circlecube committed Oct 30, 2023
1 parent d20a84e commit 2e950a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/data/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { NewfoldRuntime } from "@newfold-labs/wp-module-runtime";
import { getPlatformBaseUrl } from "../util/helpers";

const getSupportPhoneNumber = () => {
const brand = NewfoldRuntime.sdk.plugin.brand;
const brand = NewfoldRuntime.plugin.brand;

if ( brand === 'Bluehost_India' ) {
return '1800-419-4426';
Expand Down
2 changes: 1 addition & 1 deletion src/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const AppBody = ( props ) => {
id="wppbh-app-rendered"
className={ classnames(
'wpadmin-brand-bluehost',
`wppbh-wp-${ NewfoldRuntime.sdk.wpversion }`,
`wppbh-wp-${ NewfoldRuntime.wpVersion }`,
`wppbh-page-${ kebabCase( location.pathname ) }`,
props.className,
'nfd-w-full nfd-p-4 min-[783px]:nfd-p-0'
Expand Down
2 changes: 1 addition & 1 deletion src/app/util/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export const addUtmParams = (url, params = {}) => {
* @return {string}
*/
export const getPlatformBaseUrl = ( path = '' ) => {
const brand = NewfoldRuntime.sdk.plugin.brand;
const brand = NewfoldRuntime.plugin.brand;
const isJarvis = NewfoldRuntime.capabilities.isJarvis;

const baseUrl = () => {
Expand Down

0 comments on commit 2e950a3

Please sign in to comment.