Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

null in js demo https://strukturag.github.io/libheif/ #1174

Open
EddyParkinsonAllTraders opened this issue May 21, 2024 · 0 comments
Open

null in js demo https://strukturag.github.io/libheif/ #1174

EddyParkinsonAllTraders opened this issue May 21, 2024 · 0 comments

Comments

@EddyParkinsonAllTraders
Copy link

EddyParkinsonAllTraders commented May 21, 2024

Null on this line:

console.log("Using libheif", libheif.heif_get_version());

Uncaught TypeError: libheif.heif_get_version is not a function at window.onload (libheif/:314:46)

But it works fine if I reload. execution order maybe?


    window.onload = function() {
        hide("loading");
        if (typeof libheif === "undefined") {
            alert("libheif could not be loaded, please check your browser console for details.");
            return;
        }

        console.log("Using libheif", libheif.heif_get_version());
        var demo = new HeifDemo(libheif);

        show("form");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant