Skip to content

Commit e4bcd10

Browse files
committed
Use Event type for IndexedDB errors
1 parent 3ad597c commit e4bcd10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/scala/org/scalajs/dom/raw/Idb.scala

+3-3
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ class IDBTransaction extends EventTarget {
509509
*
510510
* MDN
511511
*/
512-
var onerror: js.Function1[ErrorEvent, _] = js.native
512+
var onerror: js.Function1[Event, _] = js.native
513513

514514
/**
515515
* The event handler for the onabort event.
@@ -613,7 +613,7 @@ class IDBDatabase extends EventTarget {
613613
*
614614
* MDN
615615
*/
616-
var onerror: js.Function1[ErrorEvent, _] = js.native
616+
var onerror: js.Function1[Event, _] = js.native
617617

618618
/**
619619
* Fires when access of the database is aborted.
@@ -788,7 +788,7 @@ class IDBRequest extends EventTarget {
788788
*
789789
* MDN
790790
*/
791-
var onerror: js.Function1[ErrorEvent, _] = js.native
791+
var onerror: js.Function1[Event, _] = js.native
792792

793793
/**
794794
* The state of the request. Every request starts in the pending state. The state

0 commit comments

Comments
 (0)