SpikeHD / Dorion

Tiny alternative Discord client with a smaller footprint, snappier startup, themes, plugins and more!
https://spikehd.github.io/projects/dorion/
GNU General Public License v3.0
630 stars 20 forks source link

[BUG] Plugins with dynamically imported module not working #47

Closed Small-Ku closed 1 year ago

Small-Ku commented 1 year ago

Describe the bug Using petpet plugin and it shows this error:

TypeError: Failed to fetch dynamically imported module: https://unpkg.com/gifenc@1.0.3/dist/gifenc.esm.js

To Reproduce Steps to reproduce the behavior:

  1. Enable the plugin, petpet
  2. Try to petpet from chat

Expected behavior GIF is successfully made and ready for sending.

Screenshots

System Info (please complete the following information):

Additional context

SpikeHD commented 1 year ago

The way Vencord disables CSP is either through a browser extension method (not available to Dorion, WebViews don't support extensions) or through methods only available in the client modification version (also obviously not available to Dorion).

It's been talked about in the Tauri discussions and the short answer to that, too, is that it's not possible. I will see if I can modify my forked version to load libraries in the backend though.

SpikeHD commented 1 year ago

Dynamically imported modules should be fixed as of recently