load jamserver.js

instead of jamserver.js instead of jamserver_copy.js when loading
react.js front end. jamserver_copy for some reason desn not load
all of the javascripts needed to get for example subscription messages
to be captured in the front end.
This commit is contained in:
Nuwan 2025-07-18 19:38:14 +05:30
parent 08008a6dc3
commit 9058c8af1d
2 changed files with 3 additions and 2 deletions

View File

@ -129,7 +129,6 @@ function JKDashboardMain() {
return;
}
const app = window.JK.JamKazam();
const jamServer = new window.JK.JamServer(app, function (event_type) {
@ -141,6 +140,8 @@ function JKDashboardMain() {
const clientInit = new window.JK.ClientInit();
clientInit.init();
app.initialize();
window.JK.JamServer.connect() // singleton here defined in JamServer.js
.done(function () {
console.log('Jamserver connected...');

View File

@ -16,7 +16,7 @@
//= require utils
//= require subscription_utils
//= require jamkazam
//= require modern/JamServer_copy
//= require JamServer
//= require fakeJamClient
//= require fakeJamClientMessages