• Robert Knight's avatar
    Ignore "fake" window unload events in PortRPC · f5de259e
    Robert Knight authored
    In VitalSource custom/synthetic "unload" events are dispatched at the book's
    container frame when switching chapters. Make sure these don't trigger the code
    in the `PortRPC` class that is meant to be called when the window is unloaded.
    
    These synthetic events were triggered after every chapter navigation. In Safari
    <= 15 the second and subsequent events would cause an error in the
    `currentWindow.parent.postMessage` call because the port had already been
    transferred after the first event was handled.
    f5de259e
Name
Last commit
Last update
..
messaging Loading commit data...
test Loading commit data...
cfi.ts Loading commit data...
config-fragment.ts Loading commit data...
csv.ts Loading commit data...
download-file.ts Loading commit data...
frame-error-capture.ts Loading commit data...
has-own.ts Loading commit data...
injector.ts Loading commit data...
is-object.ts Loading commit data...
listener-collection.ts Loading commit data...
pluralize.ts Loading commit data...
presentational-component.tsx Loading commit data...
promise-with-resolvers.ts Loading commit data...
random.ts Loading commit data...
read-json-file.ts Loading commit data...
shortcut.ts Loading commit data...
trim-and-dedent.ts Loading commit data...
type-coercions.ts Loading commit data...
user-agent.ts Loading commit data...
warn-once.ts Loading commit data...