Skip to content

v0.1.1 — Fix plugin load failure

Choose a tag to compare

@atbeta atbeta released this 25 Jul 02:41
eb25c77

Fix

  • Plugin load failed with "TypeError: h is not a constructor" on startup
  • Cause: workspace.on('editor-paste', ...) and workspace.on('editor-drop', ...) are not valid Obsidian events (those are VSCode-style). The workspace falls through to a code path that requires a constructor we don't have.
  • Fix: switch to registerDomEvent(document, 'paste' | 'drop', cb, true) with useCapture=true so we run before Obsidian's default handler. We bail when the target is outside a CodeMirror editor (.cm-content / .CodeMirror), so global paste for the search box and settings dialog is untouched.

Install

Same as v0.1.0 — drop main.js, manifest.json, styles.css from the release assets into your vault's .obsidian/plugins/picfast-image-uploader/. No settings migration needed (version bumped in manifest).