Software /
code /
prosody-modules
File
mod_jsxc/templates/template.js @ 6206:ac7e2992fe6e
mod_rest: Strip down error payloads to avoid stack overflow
When the util.error feature of including a traceback in the error,
util.json can't serialize it as it is often self-referential.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 16 Mar 2025 17:04:51 +0100 (5 days ago) |
parent | 4825:4bdfd83e091f |
line wrap: on
line source
$(function() { let jsxc = new JSXC({ loadConnectionOptions: function(username, password) { return Promise.resolve(%s); } }); let formElement = $('#jsxc_login_form'); let usernameElement = $('#jsxc_username'); let passwordElement = $('#jsxc_password'); jsxc.watchForm(formElement, usernameElement, passwordElement); });