tkyaji / cordova-plugin-crypt-file

This plugin to encrypt the source files.
Apache License 2.0
179 stars 116 forks source link

HTML not decrypted after reload #35

Closed blaskurain closed 7 years ago

blaskurain commented 7 years ago

Hi,

I have detected that when I execute this in Javascript:

window.location.reload()

After reloading the raw html file (encrypted) gets displayed instead of the decrypted version. I managed to work around the problem by doing this instead:

window.location = window.location.href.replace(/#.*/, '');

I believe the problem might be isCryptFiles. It doesn't take into account that the URI might have a fragment identifier and it doesn't look like this situation is handled anywhere else.

tkyaji commented 7 years ago

Is the environment Android? Please try the latest version.

blaskurain commented 7 years ago

The environment was indeed Android. I am sorry but I can't try the latest version: the project on which the problem was detected is already closed and I'm too busy right now to take it back.

tkyaji commented 7 years ago

OK. Close this issue.

ibrahimAboelsuod commented 6 years ago

I have this issue with the latest version. And blaskurain workaround didn't work for me. What I am trying to do is to reload the app when the user logs out. and it loads the index.html file but encrypted !