Skip to content

Commit

Permalink
Get ads bug fix (#83)
Browse files Browse the repository at this point in the history
If we can't get ads, we should return nil instead of empty string ""
  • Loading branch information
AGulev authored and britzl committed Nov 25, 2019
1 parent 3956e38 commit caaf3cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fbinstant/lib/web/library_fbinstant.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ var FBInstantLibrary = {
Utils.dynCall(callback, [id, 0]);
}).catch(function(err) {
console.log("FBInstant_PlatformGetInterstitialAdAsync - error: " + err.message);
Utils.dynCall(callback, [1, err.code]);
Utils.dynCall(callback, [0, err.code]);
});
},
FBInstant_PlatformLoadInterstitialAdAsync: function(callback, cid) {
Expand Down Expand Up @@ -680,7 +680,7 @@ var FBInstantLibrary = {
Utils.dynCall(callback, [id, 0]);
}).catch(function(err) {
console.log("FBInstant_PlatformGetRewardedVideoAsync - error: " + err.message);
Utils.dynCall(callback, [1, err.code]);
Utils.dynCall(callback, [0, err.code]);
});
},
FBInstant_PlatformLoadRewardedVideoAsync: function(callback, cid) {
Expand Down

0 comments on commit caaf3cb

Please sign in to comment.