mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
Add info snackbar for Firefox users
This commit is contained in:
@@ -169,6 +169,13 @@ export function useMenuAction(
|
||||
// Firefox doesn't allow for reading clipboard data, hence the workaround
|
||||
if (navigator.userAgent.includes("Firefox")) {
|
||||
if (!e || !e.clipboardData) {
|
||||
enqueueSnackbar(
|
||||
`If you're on Firefox, please use the hotkey instead (Ctrl + V / Cmd + V).`,
|
||||
{
|
||||
variant: "info",
|
||||
autoHideDuration: 7000,
|
||||
}
|
||||
);
|
||||
enqueueSnackbar(`Cannot read clipboard data.`, {
|
||||
variant: "error",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user