This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The events are from https://www.w3.org/TR/html5/semantics-embedded-content.html#media-elements-event-summary | |
import videojs from 'video.js' | |
const Plugin = videojs.getPlugin('plugin') | |
const EVENTS = [ | |
'loadstart', | |
'progress', | |
'suspend', | |
'abort', | |
'error', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { uid } from './uid.js'; | |
console.log(uid()); | |
//nothing else to import because we are using the built in methods | |
//https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase | |
const IDB = (function init() { | |
let db = null; | |
let objectStore = null; | |
let DBOpenReq = indexedDB.open('WhiskeyDB', 6); |