mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
This commit is contained in:
parent
2e3783f1c6
commit
4a61ff2df3
@ -72,6 +72,7 @@ describe('createEditor', () => {
|
||||
return `
|
||||
exports.default = context => {
|
||||
context.postMessage(context.pluginId);
|
||||
return {};
|
||||
};
|
||||
`;
|
||||
});
|
||||
@ -138,6 +139,7 @@ describe('createEditor', () => {
|
||||
return `
|
||||
exports.default = context => {
|
||||
context.postMessage(context.pluginId);
|
||||
return {};
|
||||
};
|
||||
`;
|
||||
});
|
||||
|
@ -75,7 +75,7 @@ export default class PluginLoader {
|
||||
return;
|
||||
}
|
||||
|
||||
scriptElement.innerText = `
|
||||
scriptElement.appendChild(document.createTextNode(`
|
||||
(async () => {
|
||||
const exports = {};
|
||||
const require = window.__pluginLoaderRequireFunctions[${JSON.stringify(this.pluginLoaderId)}];
|
||||
@ -87,7 +87,7 @@ export default class PluginLoader {
|
||||
|
||||
window.__pluginLoaderScriptLoadCallbacks[${JSON.stringify(scriptId)}](exports);
|
||||
})();
|
||||
`;
|
||||
`));
|
||||
|
||||
(window as any).__pluginLoaderScriptLoadCallbacks[scriptId] = onLoad;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user