jakearchibald / idb-keyval

A super-simple-small promise-based keyval store implemented with IndexedDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UMD version doesn't work from jsDelivr because of wrong MIME

jcubic opened this issue · comments

The example shows:

<script src="https://cdn.jsdelivr.net/npm/idb-keyval@6/dist/umd.cjs"></script>

But this doesn't work because of the file extension. Browser throw error:

Refused to execute script from 'https://cdn.jsdelivr.net/npm/idb-keyval@6/dist/umd.cjs' because its MIME type ('application/node') is not executable, and strict MIME type checking is enabled.