Skip to content

Commit

Permalink
- Ignore clipboard read no permission error
Browse files Browse the repository at this point in the history
- Fix desktop header drag
  • Loading branch information
Rustem Mussabekov committed May 8, 2024
1 parent 75eac25 commit fe59a50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/co/bookmarks/add/fallback/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function AddForm({ spaceId, onEdit, pin, onClose }) {
onAddTo(item.collectionId)
}, [onAddTo, item.collectionId])

//on load
//grab link from clipboard
useEffect(()=>{
async function getLink() {
//in safari readText works bad, so this line prevents run on safari
Expand All @@ -119,6 +119,7 @@ function AddForm({ spaceId, onEdit, pin, onClose }) {

getLink()
.then(link=>onChangeField({ link }))
.catch(e=>console.error(e))
.finally(()=>setLoading(false))
}, [setLoading, onChangeField])

Expand Down
4 changes: 2 additions & 2 deletions src/co/common/header/index.module.styl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.header {
//app-region: drag
//-webkit-app-region: drag
app-region: drag
-webkit-app-region: drag
display: flex
flex-direction: row
align-items: center
Expand Down

0 comments on commit fe59a50

Please sign in to comment.