lnreader icon indicating copy to clipboard operation
lnreader copied to clipboard

[Bug] “Open JS file” doesn't recognize some js files (unselectable, urned off)

Open Palloxin opened this issue 1 year ago • 1 comments

Steps to reproduce

  1. Android emulator, Android 9
  2. Create a .txt file on windows 10+
  3. change the extension to .js
  4. Import the js file in the emulator
  5. Open lnreader in the emulator
  6. click on open JS file button feature and search that same JS file. It will be unselectable

Expected behavior

JS file selectable and openable.

Actual behavior

File unselectable.

https://github.com/LNReader/lnreader/assets/75091899/3a7e221c-1b52-4cc8-bdd3-452858031bb5

LNReader version

2.0.0 (even stable)

Android version

Android 8, Android 9 (idk highter versions)

Device

Huawei p8 lite 2017, Android emulator Bluestack

Other details

I kinda reported it already but I though it was due to the app I created tge JS file with. Now i discovered that even JS files from windows dont work.

This an example file for testing purposes:

general.js

Acknowledgements

  • [X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
  • [X] I have written a short but informative title.
  • [X] If this is an issue with a source, I should be opening an issue in the sources repository.
  • [X] I have updated the app to version 2.0.0.
  • [X] I will fill out all of the requested information in this form.

Palloxin avatar May 16 '24 21:05 Palloxin

on a samsung someone tried to open such js file, this is the error(beta3):

Image

Palloxin avatar Sep 11 '25 22:09 Palloxin