This commit is contained in:
Devon22 2026-07-06 00:08:34 +08:00
parent 209a4a0ecc
commit eaeab64963
4 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
{
"id": "mediaviewer",
"name": "Media Viewer",
"version": "2.1.11",
"version": "2.1.12",
"minAppVersion": "1.8.7",
"description": "Transform your notes with beautiful interactive media galleries. Seamlessly view, zoom, and manage images, videos, and audio files.",
"author": "Devon22",

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "mediaviewer",
"version": "2.1.11",
"version": "2.1.12",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "mediaviewer",
"version": "2.1.11",
"version": "2.1.12",
"license": "MIT",
"devDependencies": {
"@types/node": "^16.11.6",

View file

@ -1,7 +1,7 @@
{
"name": "mediaviewer",
"version": "2.1.11",
"description": "View and manage media files within your notes.",
"version": "2.1.12",
"description": "Transform your notes with beautiful interactive media galleries. Seamlessly view, zoom, and manage images, videos, and audio files.",
"main": "main.js",
"scripts": {
"dev": "node esbuild.config.mjs",

View file

@ -711,7 +711,7 @@ export class GalleryBlock {
};
}
const appWithPlugins = this.app as ObsidianAppWithPlugins;
const zipPlugin = appWithPlugins.plugins?.plugins?.['obsidian-gridexplorer'];
const zipPlugin = appWithPlugins.plugins?.plugins?.['gridexplorer'];
if (!zipPlugin || typeof zipPlugin.getThumbnail !== 'function') {
return null;