|
|
@ -154,7 +154,8 @@ class Library {
|
|
|
|
return this.setLibrary(() => {
|
|
|
|
return this.setLibrary(() => {
|
|
|
|
return new Promise<LibraryItems>(async (resolve, reject) => {
|
|
|
|
return new Promise<LibraryItems>(async (resolve, reject) => {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
const source = await (typeof libraryItems === "function"
|
|
|
|
const source = await (typeof libraryItems === "function" &&
|
|
|
|
|
|
|
|
!(libraryItems instanceof Blob)
|
|
|
|
? libraryItems(this.lastLibraryItems)
|
|
|
|
? libraryItems(this.lastLibraryItems)
|
|
|
|
: libraryItems);
|
|
|
|
: libraryItems);
|
|
|
|
|
|
|
|
|
|
|
|