Files
tribes-plugin-aether/assets/js/aether.js
T
self 21dd359b2f docs: clarify plugin hook registration
Document that external plugin hooks are registered through global_js bundles and window.TribesPluginHooks rather than host-side colocated imports.
2026-05-24 23:46:10 +02:00

17 lines
550 B
JavaScript

// Plugin JavaScript entry point.
//
// This file is served by the host at /plugins-assets/aether/aether.js
// and included in the page layout if declared in manifest.json assets.global_js.
//
// Register plugin LiveView hooks here. External plugin OTP apps are not
// auto-imported by the host's phoenix-colocated bundle.
//
// window.TribesPluginHooks = window.TribesPluginHooks || {};
// window.TribesPluginHooks["AetherHook"] = {
// mounted() {
// console.log("Aether hook mounted");
// }
// };
console.log("aether loaded");