monkeytype icon indicating copy to clipboard operation
monkeytype copied to clipboard

Save screenshot not working on Safari browser

Open zinwalin opened this issue 2 years ago • 3 comments

Did you clear cache before opening an issue?

  • [X] I have cleared my cache

Is there an existing issue for this?

  • [X] I have searched the existing issues

Does the issue happen when logged in?

Yes

Does the issue happen when logged out?

Yes

Does the issue happen in incognito mode when logged in?

Yes

Does the issue happen in incognito mode when logged out?

Yes

Account name

No response

Account config

No response

Current Behavior

No response

Expected Behavior

No response

Steps To Reproduce

No response

Environment

  • OS: macOS 12.3
  • Browser: Safari
  • Browser Version: 15.4

Anything else?

No response

zinwalin avatar Apr 08 '22 01:04 zinwalin

I think safari possibly changed something about clipboard permission. I added a better error message though.

Miodec avatar Apr 08 '22 20:04 Miodec

https://developer.apple.com/forums/thread/691873

This thread should help in fixing this, it seems that Safari expects a promise?

This is the function that does the layout shift and saving to clipboard:

https://github.com/monkeytypegame/monkeytype/blob/master/frontend/src/ts/test/test-ui.ts#L240

dudemanppl avatar Aug 19 '22 02:08 dudemanppl

https://developer.apple.com/forums/thread/691873

This thread should help in fixing this, it seems that Safari expects a promise?

This is the function that does the layout shift and saving to clipboard:

https://github.com/monkeytypegame/monkeytype/blob/master/frontend/src/ts/test/test-ui.ts#L240

I tried this - same thing

Miodec avatar Sep 04 '22 11:09 Miodec