-
Notifications
You must be signed in to change notification settings - Fork 1
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
Make Safari happy #146
base: main
Are you sure you want to change the base?
Make Safari happy #146
Conversation
Reference |
8187808
to
c4848bc
Compare
@@ -33,18 +34,18 @@ export const ViewConfiguration: React.FunctionComponent<Props> = (props) => { | |||
const webhookPoLine = 'm3/poline'; | |||
const msName = ms.name; | |||
|
|||
const copyPOHeadUrl = async (event: React.MouseEvent<HTMLElement>) => { | |||
const copyPOHeadUrl = (event: React.MouseEvent<HTMLElement>) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar blocks of code found in 4 locations. Consider refactoring.
enqueueSnackbar('POHEAD URL copied to clipboard.'); | ||
} catch { | ||
enqueueSnackbar('Failed to copy POHEAD URL to clipboard.', { variant: 'error' }); | ||
} | ||
}; | ||
|
||
const copyPOLineUrl = async (event: React.MouseEvent<HTMLElement>) => { | ||
const copyPOLineUrl = (event: React.MouseEvent<HTMLElement>) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar blocks of code found in 4 locations. Consider refactoring.
@@ -99,18 +100,18 @@ export const Configuration: React.FunctionComponent<Props> = (props) => { | |||
const webhookPoHead = 'm3/pohead'; | |||
const webhookPoLine = 'm3/poline'; | |||
|
|||
const copyPOHeadUrl = async (event: React.MouseEvent<HTMLElement>) => { | |||
const copyPOHeadUrl = (event: React.MouseEvent<HTMLElement>) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar blocks of code found in 4 locations. Consider refactoring.
enqueueSnackbar('POHEAD URL copied to clipboard.'); | ||
} catch { | ||
enqueueSnackbar('Failed to copy POHEAD URL to clipboard.', { variant: 'error' }); | ||
} | ||
}; | ||
|
||
const copyPOLineUrl = async (event: React.MouseEvent<HTMLElement>) => { | ||
const copyPOLineUrl = (event: React.MouseEvent<HTMLElement>) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar blocks of code found in 4 locations. Consider refactoring.
Code Climate has analyzed commit c4848bc and detected 4 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
Summary
Making copy to clipboard work in Safari