We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 069abbb commit dc3697dCopy full SHA for dc3697d
lib/ads/interstitial_ad_manager.js
@@ -954,14 +954,14 @@ shaka.ads.InterstitialAdManager = class {
954
const skipControl = dataAsJson['SKIP-CONTROL'];
955
if (skipControl) {
956
const enableSkipAfterValue = skipControl['ENABLE-SKIP-AFTER'];
957
- if (enableSkipAfterValue instanceof Number) {
+ if ((typeof enableSkipAfterValue) == 'number') {
958
skipOffset = parseFloat(enableSkipAfterValue);
959
if (isNaN(enableSkipAfterValue)) {
960
skipOffset = isSkippable ? 0 : null;
961
}
962
963
const enableSkipForValue = skipControl['ENABLE-SKIP-FOR'];
964
- if (enableSkipForValue instanceof Number) {
+ if ((typeof enableSkipForValue) == 'number') {
965
skipFor = parseFloat(enableSkipForValue);
966
if (isNaN(enableSkipForValue)) {
967
skipFor = null;
0 commit comments