nl_tokens: Open a database .
pl_tokens: function openDB ( name , version , { blocked , upgrade , blocking } = { } ) { const request = indexedDB . open ( name , version ) ; const openPromise = wrap ( request ) ; if ( upgrade ) { request . addEventListener ( 'upgradeneeded' , ( event ) => { upgrade ( wrap ( request . result ) , event . oldVersion , event . newVersion , wrap ( request . transaction ) ) ; } ) ; } if ( blocked ) request . addEventListener ( 'blocked' , ( ) => blocked ( ) ) ; if ( blocking ) openPromise . <mask> ( db => db . addEventListener ( 'versionchange' , blocking ) ) ; return openPromise ; }