Skip to content

Commit

Permalink
ecommerce runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
manikantakailasa committed Jul 2, 2024
1 parent 23c0638 commit 31b06da
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/sdk/NewfoldRuntime.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,22 @@ export const NewfoldRuntime = {
get siteUrl() {
return window.NewfoldRuntime?.siteUrl;
},
get isWoo(){
get isWoo() {
return window.NewfoldRuntime?.isWoocommerceActive
},
get isJet(){
get isJet() {
return window.NewfoldRuntime?.isJetpackBoostActive
},
get homeUrl(){
get homeUrl() {
return window.NewfoldRuntime?.homeUrl
},
get currentTheme(){
get currentTheme() {
return (window.NewfoldRuntime?.currentTheme);
},
get plugin(){
get plugin() {
return (window.NewfoldRuntime?.plugin);
},
get ecommerce() {
return (window.NewfoldRuntime?.ecommerce);
}
};

0 comments on commit 31b06da

Please sign in to comment.