Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
c26dde34
Commit
c26dde34
authored
Feb 27, 2019
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow setting of debug mode via URL with `/#converse?debug=true`
parent
61a0e1bb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
1 deletion
+21
-1
CHANGES.md
CHANGES.md
+1
-0
dist/converse.js
dist/converse.js
+8
-0
docs/source/configuration.rst
docs/source/configuration.rst
+4
-1
src/headless/converse-core.js
src/headless/converse-core.js
+8
-0
No files found.
CHANGES.md
View file @
c26dde34
...
...
@@ -2,6 +2,7 @@
## 4.1.3 (Unreleased)
-
Allow setting of debug mode via URL with
`/#converse?debug=true`
-
New config setting
[
locked_muc_domain
](
https://conversejs.org/docs/html/configuration.html#locked-muc-domain
)
-
New config setting
[
show_client_info
](
https://conversejs.org/docs/html/configuration.html#show-client-info
)
-
#1373: Re-add support for the
[
muc_domain
](
https://conversejs.org/docs/html/configuration.html#muc-domain
)
setting
...
...
dist/converse.js
View file @
c26dde34
...
...
@@ -63176,6 +63176,14 @@ _converse.initialize = async function (settings, callback) {
throw new Error("Config Error: you need to provide the server's " + "domain via the 'jid' option when using anonymous " + "authentication with auto_login.");
}
}
_converse.router.route(/^converse\?debug=(true|false)$/, 'debug', debug => {
if (debug === "true") {
_converse.debug = true;
} else {
_converse.debug = false;
}
});
/* Localisation */
docs/source/configuration.rst
View file @
c26dde34
...
...
@@ -588,7 +588,10 @@ debug
* Default: ``false``
If set to true, debugging output will be logged to the browser console.
If set to ``true``, debugging output will be logged to the browser console.
You can also set this value by changing the URL fragment to `#converse?debug=true` or `#converse?debug=false`.
default_domain
--------------
...
...
src/headless/converse-core.js
View file @
c26dde34
...
...
@@ -495,6 +495,14 @@ _converse.initialize = async function (settings, callback) {
}
}
_converse
.
router
.
route
(
/^converse
\?
debug=
(
true|false
)
$/
,
'
debug
'
,
debug
=>
{
if
(
debug
===
"
true
"
)
{
_converse
.
debug
=
true
;
}
else
{
_converse
.
debug
=
false
;
}
});
/* Localisation */
if
(
!
_
.
isUndefined
(
i18n
))
{
i18n
.
setLocales
(
settings
.
i18n
,
_converse
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment