aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArthur Hulsman <a.hulsman@orangegames.com>2018-03-09 14:29:37 +0100
committerArthur Hulsman <a.hulsman@orangegames.com>2018-03-09 14:29:37 +0100
commit6a2ca534d219233b20941bfc987f7a4a488502c7 (patch)
tree1fc758718f878cbbea3d8c76d3befdea3d812856 /src
parent7adc2bc6c8eeb7ae0651d536aa561cec2e37a830 (diff)
downloadplyr-6a2ca534d219233b20941bfc987f7a4a488502c7.tar.lz
plyr-6a2ca534d219233b20941bfc987f7a4a488502c7.tar.xz
plyr-6a2ca534d219233b20941bfc987f7a4a488502c7.zip
Removed redundant wrappers within the adsmanager promises.
Diffstat (limited to 'src')
-rw-r--r--src/js/plugins/ads.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/js/plugins/ads.js b/src/js/plugins/ads.js
index cc11fa13..62162e84 100644
--- a/src/js/plugins/ads.js
+++ b/src/js/plugins/ads.js
@@ -68,9 +68,9 @@ class Ads {
// Setup a promise to resolve when the IMA manager is ready
this.managerPromise = new Promise((resolve, reject) => {
// The ad is pre-loaded and ready
- this.on('ADS_MANAGER_LOADED', () => resolve());
+ this.on('ADS_MANAGER_LOADED', resolve);
// Ads failed
- this.on('ERROR', () => reject());
+ this.on('ERROR', reject);
});
}
@@ -503,7 +503,7 @@ class Ads {
// Re-set our adsManager promises
this.managerPromise = new Promise(resolve => {
- this.on('ADS_MANAGER_LOADED', () => resolve());
+ this.on('ADS_MANAGER_LOADED', resolve);
this.player.debug.log(this.manager);
});