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

Compatibility with RetroZilla #141

Closed
tobiastromm opened this issue Jan 10, 2020 · 7 comments
Closed

Compatibility with RetroZilla #141

tobiastromm opened this issue Jan 10, 2020 · 7 comments

Comments

@tobiastromm
Copy link

Can this please work with https://github.com/rn10950/RetroZilla/ browser?

  • rawUa: Mozilla/5.0 (Windows; U; Windows NT 4.0; en-US; rv:1.8.1.24) Gecko/20190223 RetroZilla/2.2 SeaMonkey/1.1.19 Firefox/2.0.20
  • string:
  • family: SeaMonkey
  • major: 1
  • minor: 1
  • patch: 19
  • device: Other 0.0.0

Thank you.

@Yaffle
Copy link
Owner

Yaffle commented Jan 10, 2020

would be nice to test and debug.
You could try to node tests\server.js then open http://localhost:8002 and capture the results.
Is it the same as Firefox 2 ? May be, I could download old Firefox and test....

@Yaffle
Copy link
Owner

Yaffle commented Jan 11, 2020

@tobiastromm , ddddda0

@tobiastromm
Copy link
Author

@Yaffle, working exactly as expected.

Thank You soo much.

Just test it with https://www.w3schools.com/html/tryit.asp?filename=tryhtml5_sse example code.

Retro-Zilla-Event-Source

@tobiastromm
Copy link
Author

tobiastromm commented Jan 11, 2020

Just a question.

Appears that old browsers do not support "var data = JSON.parse(e.data);"

Any alternative to that:

source.addEventListener('novaMensagem', function(e) {
var data = JSON.parse(e.data);
alert ('Mensagem: ' + data.mensagem + ' , Data\Hora: ' + data.mensagemNotificacao);
}, false);

Here is the code: https://1drv.ms/u/s!ArtKBgb5IaW1hGHuJ8iD1yWUjAEE?e=0wOQ8z

old

modern

@Yaffle
Copy link
Owner

Yaffle commented Jan 12, 2020

@tobiastromm , you might try to use a polyfill for JSON - https://github.com/douglascrockford/JSON-js/blob/master/json2.js

@tobiastromm
Copy link
Author

@Yaffle , working exactly as expected!!! Again, thank you soo much. Thank you for your kindness and support. I am closing this.

@Yaffle
Copy link
Owner

Yaffle commented Jan 13, 2020

@tobiastromm , thank you! Now it works in Firefox 2 :-)

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

2 participants