add option to fetch settings from external API
This commit is contained in:
19
dist/index.html
vendored
19
dist/index.html
vendored
@@ -13,20 +13,11 @@
|
||||
<script src="./chatbox.js"></script>
|
||||
<script>
|
||||
var config = {
|
||||
matrixServerUrl: 'https://matrix.rhok.space',
|
||||
botId: '@help-bot:rhok.space',
|
||||
roomName: 'Support Chat',
|
||||
termsUrl: 'https://tosdr.org/',
|
||||
introMessage: "This chat application does not collect any of your personal data or any data from your use of this service.",
|
||||
agreementMessage: 'Do you want to continue?',
|
||||
confirmationMessage: 'Waiting for a facilitator to join the chat...',
|
||||
exitMessage: 'The chat is closed. You may close this window.',
|
||||
chatUnavailableMessage: 'The chat service is not available right now. Please try again later.',
|
||||
anonymousDisplayName: 'Anonymous',
|
||||
position: 'bottom right',
|
||||
size: 'large',
|
||||
maxWaitTime: 1000*60*3, // 3 minutes
|
||||
}
|
||||
matrixServerUrl: 'https://matrix.safesupport.chat',
|
||||
airtableApiKey: 'keyFfDHgHILw5IIwA',
|
||||
airtableBaseId: 'app7IycwU6dY6o1oj',
|
||||
settingsTableName: 'settings',
|
||||
}
|
||||
|
||||
EmbeddableChatbox.mount(config);
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user