mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
since FF impulitely complains when we are asking permission pulitely, we are not longer asking for permission, it's quieter this way...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
1b98cddc2a
commit
14b3d7aed7
@ -3338,12 +3338,11 @@ var BrowserPrototype = {
|
||||
: this.load(str)
|
||||
}.bind(this), 5)
|
||||
},
|
||||
// NOTE: FF does not support permission querying so we are not asking,
|
||||
// yes this may result in things breaking, but all the shards
|
||||
// should be contained within the handler...
|
||||
__copy: function(text){
|
||||
navigator.permissions.query({name: 'clipboard-write'})
|
||||
.then(function({state}){
|
||||
;(state == 'granted' || state == 'prompt' ) ?
|
||||
navigator.clipboard.writeText(text || this.path)
|
||||
: console.warn('.__copy(..): clipboard-write not allowed.') }) },
|
||||
navigator.clipboard.writeText(text || this.path) },
|
||||
|
||||
|
||||
// Element renderers...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user