diff --git a/src/post-worker.js b/src/post-worker.js index 6f81d32d..9004690b 100644 --- a/src/post-worker.js +++ b/src/post-worker.js @@ -266,7 +266,7 @@ self.oneshotRender = function (lastRenderedTime, renderNow, iteration) { var eventFinish = -1.0, emptyFinish = -1.0, animated = false; var rendered = {}; if (eventStart >= 0) { - eventTimes = self.octObj.findEventStopTimes(eventStart); + var eventTimes = self.octObj.findEventStopTimes(eventStart); eventFinish = eventTimes.eventFinish; emptyFinish = eventTimes.emptyFinish; animated = eventTimes.is_animated; diff --git a/src/subtitles-octopus.js b/src/subtitles-octopus.js index 5ef1db3c..32583d83 100644 --- a/src/subtitles-octopus.js +++ b/src/subtitles-octopus.js @@ -10,7 +10,7 @@ var SubtitlesOctopus = function (options) { try { if (typeof WebAssembly === "object" && typeof WebAssembly.instantiate === "function") { - const module = new WebAssembly.Module(Uint8Array.of(0x0, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00)); + var module = new WebAssembly.Module(Uint8Array.of(0x0, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00)); if (module instanceof WebAssembly.Module) supportsWebAssembly = (new WebAssembly.Instance(module) instanceof WebAssembly.Instance); }