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

extension example doesn't work with Sciter.JS #97

Open
GirkovArpa opened this issue Feb 18, 2021 · 3 comments
Open

extension example doesn't work with Sciter.JS #97

GirkovArpa opened this issue Feb 18, 2021 · 3 comments
Labels
sciter-engine Issues related to the Sciter Engine itself

Comments

@GirkovArpa
Copy link
Contributor

The example works as intended. But porting it to Sciter.JS does not:

<html>
<head>
  <title>extension test</title>
  <style type="text/css">
  </style>
  <script type="text/javascript" type="module">
    // copy "extension.dll" next to the "sciter.dll"
    import { loadLibrary } from "@sciter";
    const ext = loadLibrary("extension");
    console.log(ext); // Object
    console.log(JSON.stringify(ext)); // "{"add":"","sub":""}"
    console.log(typeof ext.add); // string
    console.log(ext.add(1,2)); // TypeError: not a function
    console.log(ext.sub(1,2));
  </script>
</head>
<body>
  <h4>see logs in Inspector</h4>
</body>
</html>
@pravic pravic added the sciter-engine Issues related to the Sciter Engine itself label Feb 25, 2021
@pravic
Copy link
Member

pravic commented Feb 25, 2021

Thanks for reporting this, nice to know. But there's nothing we can do in Rust, as I see.

@GirkovArpa
Copy link
Contributor Author

GirkovArpa commented Feb 25, 2021

I see.

@GirkovArpa
Copy link
Contributor Author

For the record, I was hoping I could try my hand at the "sciter-ffmpeg.dll" referenced here. If Sciter.JS removed this API I suppose the only other is SOM, which is quite complicated for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sciter-engine Issues related to the Sciter Engine itself
Development

No branches or pull requests

2 participants