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:
parent
7e4533d811
commit
c197a83de8
@ -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) => {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user