File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -45,11 +45,11 @@ export default class InterstitialAd extends MobileAd {
45
45
46
46
load ( ) {
47
47
// Prevent multiple load calls
48
- if ( this . _loaded ) {
48
+ if ( this . _loaded || this . _isLoadCalled ) {
49
49
return ;
50
50
}
51
51
52
- this . _loaded = true ;
52
+ this . _isLoadCalled = true ;
53
53
this . _admob . native . interstitialLoad ( this . _requestId , this . _adUnitId , this . _requestOptions ) ;
54
54
}
55
55
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ export default class MobileAd {
28
28
this . _requestOptions = requestOptions ;
29
29
30
30
this . _loaded = false ;
31
+ this . _isLoadCalled = false ;
31
32
this . _onAdEventHandler = null ;
32
33
33
34
this . _nativeListener = admob . emitter . addListener (
@@ -45,6 +46,7 @@ export default class MobileAd {
45
46
46
47
if ( type === AdEventType . CLOSED || type === RewardedAdEventType . CLOSED ) {
47
48
this . _loaded = false ;
49
+ this . _isLoadCalled = false ;
48
50
}
49
51
50
52
if ( this . _onAdEventHandler ) {
Original file line number Diff line number Diff line change @@ -45,11 +45,11 @@ export default class RewardedAd extends MobileAd {
45
45
46
46
load ( ) {
47
47
// Prevent multiple load calls
48
- if ( this . _loaded ) {
48
+ if ( this . _loaded || this . _isLoadCalled ) {
49
49
return ;
50
50
}
51
51
52
- this . _loaded = true ;
52
+ this . _isLoadCalled = true ;
53
53
this . _admob . native . rewardedLoad ( this . _requestId , this . _adUnitId , this . _requestOptions ) ;
54
54
}
55
55
You can’t perform that action at this time.
0 commit comments