@agreatfool/obsidian-post-gallery
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "@agreatfool/obsidian-post-gallery", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "In post gallery for obsidian", | ||
@@ -5,0 +5,0 @@ "main": "./dist/main.js", |
@@ -80,10 +80,11 @@ import * as LibPath from 'path'; | ||
private _initGallery(galleryId: string, args: MarkdownBlockArgs): void { | ||
const gallery = (window as any).$(`#${galleryId}`); | ||
gallery.justifiedGallery(args); | ||
(window as any).$(`#${galleryId}`).justifiedGallery(args); | ||
const interval = setInterval(function () { | ||
const initialized = gallery.hasClass('justified-gallery'); | ||
if (initialized) { | ||
const gallery = (window as any).$(`#${galleryId}`); | ||
if (gallery.hasClass('justified-gallery')) { | ||
console.log(`InPostGalleryPlugin.MarkdownBlockProcessor._initGallery galleryId initialized`); | ||
clearInterval(interval); | ||
} else { | ||
console.log(`InPostGalleryPlugin.MarkdownBlockProcessor._initGallery galleryId not done yet`); | ||
gallery.justifiedGallery(args); | ||
@@ -90,0 +91,0 @@ } |
Sorry, the diff of this file is too big to display
2159139
34448