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
Commits
d0ba1734
Verified
Commit
d0ba1734
authored
Jul 29, 2019
by
Jean-Baptiste Pasquier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: baseURL to flat
parent
cd486baa
Pipeline
#4696
passed with stage
in 28 seconds
Changes
1
Pipelines
2
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
,
...
...
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