Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
SiB Chat
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
51
Issues
51
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Startin blox
components
SiB Chat
Compare Revisions
v0.2.0...v0.2.1
Source
v0.2.1
Select Git revision
...
Target
v0.2.0
Select Git revision
Compare
Commits (1)
fix: baseURL to flat
· d0ba1734
Jean-Baptiste Pasquier
authored
Jul 29, 2019
d0ba1734
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sib-chat.js
sib-chat.js
+2
-2
No files found.
sib-chat.js
View file @
d0ba1734
...
...
@@ -12,7 +12,7 @@ import { StoreMixin } from 'https://unpkg.com/@startinblox/core@0.8/dist/mixins/
// const currentURL = import.meta.url;
const
currentURL
=
(
new
Error
()).
stack
.
toString
().
match
(
/
[
a-z
]
+:
[^
:
]
+/
)[
0
];
const
baseURL
=
currentURL
.
replace
(
/
\/[^\/]
*$/
,
''
)
;
const
baseURL
=
'
https://unpkg.com/@startinblox/component-chat
'
;
export
class
ConversePlugin
{
changeChat
(
jid
,
is_groupchat
=
false
,
root
)
{
...
...
@@ -98,7 +98,7 @@ export const ChatWindow = {
const
idToken
=
await
document
.
querySelector
(
'
sib-auth
'
).
getUserIdToken
();
await
converse
.
initialize
({
debug
:
t
his
.
element
.
dataset
.
debug
===
'
true
'
,
debug
:
t
rue
,
root
:
this
.
element
.
shadowRoot
,
authentication
:
this
.
element
.
dataset
.
authentication
,
auto_reconnect
:
true
,
...
...