Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Desktop: Fix error in plugin content scripts generated with Webpack #10680

Conversation

personalizedrefrigerator
Copy link
Collaborator

@personalizedrefrigerator personalizedrefrigerator commented Jul 3, 2024

Summary

This pull request silences a warning when:

  1. renderer scripts generated with Webpack are loaded into the note viewer and
  2. scripts generated with Webpack are added to a dialog.

Similar logic is already present for mobile.

See personalizedrefrigerator/joplin-plugin-revealjs-slides#4.

Testing plan

  1. Install Freehand Drawing and RevealJS Slides.
  2. Start Joplin.
  3. Switch to the markdown editor (if not already open).
  4. Check the console for an "exports is not defined" error. Verify that it is not present.
  5. Open the drawing dialog.
  6. Check the console for an "exports is not defined" error. Verify that it is not present.

This has been tested successfully on Ubuntu 24.04.

@laurent22 laurent22 merged commit c197a83 into laurent22:dev Jul 4, 2024
10 checks passed
personalizedrefrigerator added a commit to personalizedrefrigerator/joplin that referenced this pull request Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants