akaalias / dangerzone-writing-plugin

A plugin that forces you to write for X seconds. If you pause for more than 5 seconds, everything you've written in this note is DELETED.
70 stars 5 forks source link

Doesn't do anything on iOS #8

Open ChipWolf opened 2 years ago

Hugovdberg commented 2 years ago

doesn't work for me either on Obsidian v0.13.23, in the developer console I see an error, which to me suggests that something in the Obsidian editor API changed which this plugin relies on:

CountdownTimer.ts:22 Uncaught TypeError: this.editor.getWrapperElement is not a function
    at new CountdownTimer (eval at <anonymous> (app.js:1), <anonymous>:196:21)
    at DangerzoneWritingPlugin.startTimer (eval at <anonymous> (app.js:1), <anonymous>:331:34)
    at DangerzoneWritingPlugin.startOrContinueTimer (eval at <anonymous> (app.js:1), <anonymous>:291:18)
    at HTMLDivElement.eval (eval at <anonymous> (app.js:1), <anonymous>:268:19)
DesiQuintans commented 2 years ago

Dangerzone 0.0.10 is also not working for me on Obsidian v0.15.9 on Windows 10.

plugin:dangerzone-writing-plugin:196 Uncaught TypeError: this.editor.getWrapperElement is not a function
    at new CountdownTimer (plugin:dangerzone-writing-plugin:196:21)
    at DangerzoneWritingPlugin.startTimer (plugin:dangerzone-writing-plugin:331:34)
    at DangerzoneWritingPlugin.startOrContinueTimer (plugin:dangerzone-writing-plugin:291:18)
    at HTMLDivElement.eval (plugin:dangerzone-writing-plugin:268:19)
elliotfiske commented 2 years ago

If you have text selected, that error doesn't occur. However, the plugin still doesn't do anything.

I'm planning to look into this and see if I can get it working for the latest version of Obsidian.