mirror of
https://github.com/jellyfin/JavascriptSubtitlesOctopus.git
synced 2024-11-23 05:49:54 +00:00
commit
f373e1074a
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user