mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 09:26:14 -04:00
Pad: Defer module loading until plugins are loaded
This commit is contained in:
parent
b805143d1a
commit
2b53c69749
1 changed files with 8 additions and 8 deletions
|
@ -485,18 +485,18 @@
|
||||||
if (window._postPluginUpdateForTesting != null) window._postPluginUpdateForTesting();
|
if (window._postPluginUpdateForTesting != null) window._postPluginUpdateForTesting();
|
||||||
window._postPluginUpdateForTestingDone = true;
|
window._postPluginUpdateForTestingDone = true;
|
||||||
$(() => hooks.aCallAll('documentReady'));
|
$(() => hooks.aCallAll('documentReady'));
|
||||||
|
|
||||||
|
// TODO: These globals shouldn't exist.
|
||||||
|
window.pad = require('ep_etherpad-lite/static/js/pad').pad;
|
||||||
|
window.chat = require('ep_etherpad-lite/static/js/chat').chat;
|
||||||
|
window.padeditbar = require('ep_etherpad-lite/static/js/pad_editbar').padeditbar;
|
||||||
|
window.padimpexp = require('ep_etherpad-lite/static/js/pad_impexp').padimpexp;
|
||||||
|
|
||||||
|
require('ep_etherpad-lite/static/js/skin_variants');
|
||||||
const pad = require('ep_etherpad-lite/static/js/pad');
|
const pad = require('ep_etherpad-lite/static/js/pad');
|
||||||
pad.baseURL = baseURL;
|
pad.baseURL = baseURL;
|
||||||
pad.init();
|
pad.init();
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO: These globals shouldn't exist.
|
|
||||||
window.pad = require('ep_etherpad-lite/static/js/pad').pad;
|
|
||||||
window.chat = require('ep_etherpad-lite/static/js/chat').chat;
|
|
||||||
window.padeditbar = require('ep_etherpad-lite/static/js/pad_editbar').padeditbar;
|
|
||||||
window.padimpexp = require('ep_etherpad-lite/static/js/pad_impexp').padimpexp;
|
|
||||||
|
|
||||||
require('ep_etherpad-lite/static/js/skin_variants');
|
|
||||||
})();
|
})();
|
||||||
// @license-end
|
// @license-end
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue