@@ -50,7 +50,7 @@ function executeCallback(method, callback) {
50
50
* @class Branch
51
51
*/
52
52
var Branch = function ( ) {
53
- this . debugMode = null ;
53
+ this . debugMode = false ;
54
54
} ;
55
55
56
56
/**
@@ -59,15 +59,7 @@ var Branch = function () {
59
59
* @return (Promise)
60
60
*/
61
61
Branch . prototype . initSession = function ( ) {
62
-
63
- if ( this . debugMode !== null ) {
64
- return execute ( 'initSession' ) ;
65
- } else {
66
- return new Promise ( function ( resolve , reject ) {
67
- reject ( 'Please set debug mode first.' ) ;
68
- } ) ;
69
- }
70
-
62
+ return execute ( 'initSession' ) ;
71
63
} ;
72
64
73
65
/**
@@ -182,7 +174,7 @@ Branch.prototype.userCompletedAction = function (action, metaData) {
182
174
* --------------------------------------------------------------
183
175
*/
184
176
Branch . prototype . createBranchUniversalObject = function ( options ) {
185
-
177
+
186
178
return new Promise ( function ( resolve , reject ) {
187
179
execute ( 'createBranchUniversalObject' , [ options ] ) . then ( function ( ) {
188
180
@@ -202,7 +194,7 @@ Branch.prototype.createBranchUniversalObject = function (options) {
202
194
203
195
/**
204
196
* Generates a short url.
205
- *
197
+ *
206
198
* @param (Object) options
207
199
* @param (Object) controlParameters
208
200
*
@@ -218,7 +210,7 @@ Branch.prototype.createBranchUniversalObject = function (options) {
218
210
* | stage | String | The link stage |
219
211
* | duration | Int | The link duration |
220
212
* --------------------------------------------------
221
- *
213
+ *
222
214
* controlParameters:
223
215
* -------------------------------------------------------
224
216
* | KEY | TYPE | DESCRIPTION |
@@ -244,7 +236,7 @@ Branch.prototype.createBranchUniversalObject = function (options) {
244
236
*
245
237
* @param (Object) options
246
238
* @param (Object) controlParameters
247
- *
239
+ *
248
240
* @return (Promise)
249
241
*
250
242
* options:
@@ -257,7 +249,7 @@ Branch.prototype.createBranchUniversalObject = function (options) {
257
249
* | stage | String | The link stage |
258
250
* | duration | Int | The link duration |
259
251
* --------------------------------------------------
260
- *
252
+ *
261
253
* controlParameters:
262
254
* -------------------------------------------------------
263
255
* | KEY | TYPE | DESCRIPTION |
@@ -288,7 +280,7 @@ Branch.prototype.createBranchUniversalObject = function (options) {
288
280
executeCallback ( 'onShareLinkDialogLaunched' , callback ) ;
289
281
290
282
} ;
291
-
283
+
292
284
/**
293
285
* Set on share sheet dismissed listener callback.
294
286
*
@@ -299,7 +291,7 @@ Branch.prototype.createBranchUniversalObject = function (options) {
299
291
executeCallback ( 'onShareLinkDialogDismissed' , callback ) ;
300
292
301
293
} ;
302
-
294
+
303
295
/**
304
296
* Set on link share listener callback.
305
297
*
0 commit comments