Skip to content

Commit 3b436a5

Browse files
author
Adrian Marquez
committed
deprecate delay for apple search ads method
1 parent 3d593dd commit 3b436a5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,18 @@ Branch.prototype.setCookieBasedMatching = function setCookieBasedMatching(
114114
: null;
115115
};
116116

117+
//DEPRECATED
117118
Branch.prototype.delayInitToCheckForSearchAds = function delayInitToCheckForSearchAds(
118119
isEnabled
119120
) {
120-
var value = typeof isEnabled !== "boolean" ? false : isEnabled;
121+
// stub call from known issue calling it from JS
122+
return new Promise(function promise(resolve, reject) {
123+
resolve(false);
124+
});
125+
126+
// var value = typeof isEnabled !== "boolean" ? false : isEnabled;
121127

122-
return execute("delayInitToCheckForSearchAds", [value]);
128+
// return execute("delayInitToCheckForSearchAds", [value]);
123129
};
124130

125131
Branch.prototype.getFirstReferringParams = function getFirstReferringParams() {

0 commit comments

Comments
 (0)