I am following the documentation for the banno-plugin-framework-bridge, to add a button that opens a link in a new tab.
I installed the package: "@jack-henry/banno-plugin-framework-bridge": "^1.0.0"
In my .ejs code (where I render my extension), I include in the head tag:
<script type="module">
import { enableRouter } from "/js/banno-plugin-framework-bridge.js";
enableRouter();
</script>
However, I continue to get "Blocked opening 'xyz.com' in a new window because the request was made in a sandboxed frame whose 'allow-popups' permission is not set."
In the Chrome inspector, I cannot find this file in the js folder.
The path of the node module is: .../simple-plugin/node_modules/@jack-henry/banno-plugin-framework-bridge/dist/banno-plugin-framework-bridge.js
I tried directly referencing the package from the ejs file, but that did not work. I then created my own "js" folder relative to the ejs file and copied the banno-plugin-framework-bridge.js and banno-plugin-framework-bridge.js.map but that also had no effect.
I then copied the js folder into root and added in my server.js file app.use(express.static('js'))
but still receive GET http://localhost:8080/js/banno-plugin-framework-bridge.js net::ERR_ABORTED 404 (Not Found)
My output in the .ejs file is not being logged, and debug fails. Any guidance would be greatly appreciated. Thank you.