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

Not working on browsers #42

Closed
lipefl opened this issue Jan 5, 2021 · 9 comments
Closed

Not working on browsers #42

lipefl opened this issue Jan 5, 2021 · 9 comments

Comments

@lipefl
Copy link
Contributor

lipefl commented Jan 5, 2021

On browsers it gets an error when trying to parse.
Chrome, Edge: TypeError: Cannot read property 'readText' of undefined
Firefox: Uncaught (in promise) TypeError: navigator.clipboard is undefined

Btw, it's an awesome tool! Congratulations!

@arnonram
Copy link
Owner

that's strange, most browsers support this (apart from IE)

What versions of those browsers are you using?

image

@lipefl
Copy link
Contributor Author

lipefl commented Jan 15, 2021

All of them with the most recent version. I tried again today (even with Chrome Anonymous).

If you say it's working for you, no problem, it must be something on my end.

@arnonram
Copy link
Owner

arnonram commented Jan 15, 2021

Does it get the error and stop, or parses anyway and imports the actor?

Also... What OS?

@lipefl
Copy link
Contributor Author

lipefl commented Jan 15, 2021

It stops. Windows 10.

@arnonram
Copy link
Owner

And is it consistent on all stat blocks?

The failure is in reading from the clipboard..

@lipefl
Copy link
Contributor Author

lipefl commented Jan 15, 2021

I think it's not even reading the copied text. Here's a print from the console.

image

@arnonram
Copy link
Owner

Very strange...

I'll sniff around...

@arnonram
Copy link
Owner

I think i found the reason==> https://stackoverflow.com/questions/51805395/navigator-clipboard-is-undefined

I found it when I tried to use the Importer on hosted foundry instance I have on my raspberry pi. I did not enable HTTPS and got the same error... perhaps later today or tomorrow I'll change the hosted foundry to run on HTTPS and test it

@arnonram
Copy link
Owner

arnonram commented Feb 4, 2021

@lipefl another way for this to work:

  1. Go to chrome://flags/#unsafely-treat-insecure-origin-as-secure
  2. enable it
  3. add your URL of your foundry host (for example: http://myhost:30000)

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