1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-27 08:21:03 +02:00

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

This commit is contained in:
Henry Heino 2024-07-04 05:58:26 -07:00 committed by GitHub
parent 7e4533d811
commit c197a83de8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -45,6 +45,9 @@
<script src="./scrollmap.js"></script>
<script>
// Fixes a warning when loading some TypeScript plugins generated with webpack.
window.exports = {};
// This is function used internally to send message from the webview to
// the host.
const ipcProxySendToHost = (methodName, arg) => {

View File

@ -2,6 +2,9 @@
const webviewApiPromises_ = {};
let viewMessageHandler_ = () => {};
// This silences a warning when running plugins generated with Webpack.
window.exports ??= {};
// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
const webviewApi = {
postMessage: function(message) {