Skip to content

Safari: ReferenceError: Can't find variable: AudioContext #12

@iceiix

Description

@iceiix

Safari 12.1.1 fails to load pinky, console shows it cannot find AudioContext (works on Chrome 74.0.3729.157):

[Log] WebGL support using context: – "webgl" (app.js, line 561)
[Log] Error loading Rust wasm module 'pinky_web': – ReferenceError: Can't find variable: AudioContext (app.js, line 38)
ReferenceError: Can't find variable: AudioContext
[Error] Unhandled Promise Rejection: ReferenceError: Can't find variable: AudioContext
(anonymous function) (app.js:39)
promiseReactionJob

Looks like the Web Audio API is supported, but it needs the webkit prefix: https://caniuse.com/#search=audiocontext

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions