1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

Mind type of drop event items

Related feedback:
https://github.com/gorhill/uBlock/commit/c8b7d1a526#commitcomment-135590810
This commit is contained in:
Raymond Hill 2023-12-22 11:45:35 -05:00
parent bdbb52e538
commit f81d71c6e8
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -2254,6 +2254,7 @@ const rowFilterer = (( ) => {
dom.on('#filterInput > input', 'drop', ev => {
const dropItem = item => {
if ( item.kind !== 'string' ) { return false; }
if ( item.type !== 'text/plain' ) { return false; }
item.getAsString(s => {
qs$('#filterInput > input').value = s;
parseInput();