trgkanki / remaining_time

GNU Affero General Public License v3.0
17 stars 3 forks source link

I think your addon throws an error that stops the webview inspector #14

Closed thiswillbeyourgithub closed 3 years ago

thiswillbeyourgithub commented 4 years ago

Bug report

Describe the bug

As you can see in this error report I filed initially in webview debugger, when reviewing and clicking on "inspect" using the right mouse click I instantly get the following yellow error in the console : DevTools failed to parse SourceMap: http://127.0.0.1:40511/main.min.js.map

I think this error stops the js from correctly working and stops me from accessing js objects.

Reproduction step

Steps to reproduce the behavior:

  1. Start reviewing a card
  2. Right click, "inspect"
  3. See error

Expected behavior

No error and unhindered javascript

Actual behavior

An yellow error appears and js seems unusable, I can't use document.getElementsById for example.

Anki/OS versions

Additional context

I was able to workaround this by removing the line of the template that is loading the code : <!-- # 2eecab49dc1f9618 --><script src="_remainingtime.min.js"></script><!-- / 2eecab49dc1f9618 --> and disabling the addon.

phu54321 commented 4 years ago

Ok so this bug occured on anki 2.1.33?

thiswillbeyourgithub commented 4 years ago

I was previously on 2.1.15 I think, so somewhere in between. Sorry

phu54321 commented 3 years ago

Fixed by disabling sourcemap