mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-11 18:24:43 +02:00
Desktop: Fix viewer and panel plugins that check for the presence of exports
fail to load (#10900)
This commit is contained in:
parent
6a0dd4e20d
commit
beff45e195
@ -46,9 +46,6 @@
|
||||
<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,9 +2,6 @@
|
||||
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