monkeytype
monkeytype copied to clipboard
Save screenshot not working on Safari browser
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
I think safari possibly changed something about clipboard permission. I added a better error message though.
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
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