diff --git a/CHANGES.md b/CHANGES.md index 77d482773..a5246ed3f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,6 +3,7 @@ ## 4.0.5 (Unreleased) - `FATAL: TypeError: Cannot read property 'extend' of undefined` when using `embedded` view mode. +- default paths in converse-notifications.js are now relative ## 4.0.4 (2018-10-29) diff --git a/docs/source/configuration.rst b/docs/source/configuration.rst index 8f5924f3b..d60ea60fb 100644 --- a/docs/source/configuration.rst +++ b/docs/source/configuration.rst @@ -1008,7 +1008,7 @@ certain rooms. notification_icon ----------------- -* Default: ``'/logo/conversejs.png'`` +* Default: ``'logo/conversejs-filled.svg'`` This option specifies which icon is shown in HTML5 notifications, as provided by the ``src/converse-notification.js`` plugin. @@ -1291,7 +1291,7 @@ If set to ``true``, a button will be visible which can be clicked to send a mess sounds_path ----------- -* Default: ``/sounds/`` +* Default: ``sounds/`` This option only makes sense in conjunction with the `play_sounds`_ option and specifies the URL of the sound files to be played (exluding the file names diff --git a/src/converse-notification.js b/src/converse-notification.js index ad116aefe..0d541d135 100644 --- a/src/converse-notification.js +++ b/src/converse-notification.js @@ -32,8 +32,8 @@ converse.plugins.add('converse-notification', { chatstate_notification_blacklist: [], // ^ a list of JIDs to ignore concerning chat state notifications play_sounds: true, - sounds_path: '/sounds/', - notification_icon: '/logo/conversejs-filled.svg' + sounds_path: 'sounds/', + notification_icon: 'logo/conversejs-filled.svg' }); _converse.isOnlyChatStateNotification = (msg) =>