Skip to content

Commit

Permalink
Modified allowWithoutGesture to true
Browse files Browse the repository at this point in the history
  • Loading branch information
arielclj committed Jun 16, 2020
1 parent 9d56b1e commit 099fecc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/src/ImageClassification/ImageClassification.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class ImageClassification extends React.Component {
e.preventDefault();
navigator.permissions.query({
name: 'clipboard-read',
allowWithoutGesture: false
allowWithoutGesture: true
}).then(result => {
console.log(result);
if (result.state === 'prompt' || result.state === 'granted' ) {
Expand Down
2 changes: 1 addition & 1 deletion web/src/QuestionAnswering/QuestionAnswering.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class QuestionAnswering extends React.Component {
e.preventDefault();
navigator.permissions.query({
name: 'clipboard-read',
allowWithoutGesture: false
allowWithoutGesture: true
}).then(result => {
console.log(result);
if (result.state === 'prompt' || result.state === 'granted' ) {
Expand Down

0 comments on commit 099fecc

Please sign in to comment.