-
Notifications
You must be signed in to change notification settings - Fork 43
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
FileWriter constructor name is not FileWriter #31
FileWriter constructor name is not FileWriter #31
Comments
What is the result of substituting
|
It seems FileWriter does not exist...
EDIT: But of course destination is a FileWriter:
EDIT again: More:
|
Note, Chrome Apps are slated for deprecation, see https://developer.chrome.com/docs/extensions/reference/fileSystem/. |
Betaflight is not more a Chrome app. Is a Node.js app, and it's API is compatible with the Chrome app. |
I have not tried to suuply my own |
I don't know if this helps, but here is how the It uses the Chrome way inside Node.js. And here where it is passed to the library: |
I will look into the code more later. Since you know that you are in fact passing a |
Yes, I know I can change the code to suit my implementation, I only need to change:
by:
But I use the library using npm, so what I want is some kind of fix "directly" in the library. I don't know if removing the second condition can be acceptable or not. |
You can test the local implementation then if that works without side effects you can submit a PR to this repository. |
As mentioned in #31 (comment)
https://developer.chrome.com/docs/extensions/reference/fileSystem/
Since you are using Node.js have you tried substituting using An alternative solution in the browser include using File System Access API https://wicg.github.io/file-system-access/. |
EDIT: Sorry, we only use Cordova for the Configurator, the Blackbox does not use it. |
If internally all that you use is
Technically, you can use only a
|
Chrome apps are deprecated, see https://developer.chrome.com/docs/extensions/reference/fileSystem/
Following the "migrating your app link" to
I have not tried Cordova for Android. If that framework internally uses Chrome extension API's File System Access should be exposed to utilize I tested substituting passing an instance of
When you have the time can you kindly test the code in your application and post result here? |
@McGiverGim Have you tested the substitution of File System Access API for |
No sorry, I'm out on holidays, until I return I can't test nothing.
|
I included the entire webm-writer.js code with File System Access API substituted for At the user side
Since Chrome Apps are deprecated (including |
Hi! The Betaflight Blackbox Explorer has a little bug since some time ago with your library. For some reason, this was working:
webm-writer-js/src/BlobBuffer.js
Line 23 in 098a057
But since some update of something (Node.js, probably), the value of
destination.constructor.name
isEventTarget
and notFileWriter
anymore. If I force this if to be true, all works perfectly, so theFileWriter
is valid, but for some reason thename
is not valid anymore to verify theFileWriter
.Is there some possibility of patching your library changing this verification? Thanks!
The text was updated successfully, but these errors were encountered: