Skip to content

Commit c022047

Browse files
committed
Add IDBDatabase.onversionchange
1 parent 5a502ad commit c022047

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

+8
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,14 @@ class IDBDatabase extends EventTarget {
622622
*/
623623
var onabort: js.Function1[Event, _] = js.native
624624

625+
/**
626+
* The onversionchange event handler of the IDBDatabase interface handles the versionchange
627+
* event, fired when a database structure change (IDBOpenDBRequest.onupgradeneeded event or
628+
* IDBFactory.deleteDatabase) was requested elsewhere (most probably in another window/tab
629+
* on the same computer).
630+
*/
631+
var onversionchange: js.Function1[IDBVersionChangeEvent, _] = js.native
632+
625633
/**
626634
* The method takes the name of the store as well as a parameter object. The parameter
627635
* object lets you define important optional properties. You can use the property to

0 commit comments

Comments
 (0)