Skip to content

Commit

Permalink
add isLoaded and isReady check
Browse files Browse the repository at this point in the history
  • Loading branch information
akashrpo committed Sep 15, 2021
1 parent 75760b4 commit 14eb2ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integrations/ProfitWell/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ class ProfitWell {

isLoaded() {
logger.debug("===In isLoaded ProfitWell===");
return !!window.profitwell;
return !!(window.profitwell && window.profitwell.length !== 0);
}

isReady() {
logger.debug("===In isReady ProfitWell===");
return !!window.profitwell;
return !!(window.profitwell && window.profitwell.length !== 0);
}

identify(rudderElement) {
Expand Down

0 comments on commit 14eb2ab

Please sign in to comment.