Merge pull request #55 from dmitrylyzo/strict-fix

Minor fixes
This commit is contained in:
Dmitry Lyzo 2024-03-22 15:08:24 +03:00 committed by GitHub
commit f373e1074a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);
}