Prechádzať zdrojové kódy

make default paths in notifications relative

Christoph Scholz 6 rokov pred
rodič
commit
171e257c22

+ 1 - 0
CHANGES.md

@@ -3,6 +3,7 @@
 ## 4.0.5 (Unreleased)
 ## 4.0.5 (Unreleased)
 
 
 - `FATAL: TypeError: Cannot read property 'extend' of undefined` when using `embedded` view mode.
 - `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)
 ## 4.0.4 (2018-10-29)
 
 

+ 2 - 2
docs/source/configuration.rst

@@ -1008,7 +1008,7 @@ certain rooms.
 notification_icon
 notification_icon
 -----------------
 -----------------
 
 
-* Default: ``'/logo/conversejs.png'``
+* Default: ``'logo/conversejs-filled.svg'``
 
 
 This option specifies which icon is shown in HTML5 notifications, as provided
 This option specifies which icon is shown in HTML5 notifications, as provided
 by the ``src/converse-notification.js`` plugin.
 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
 sounds_path
 -----------
 -----------
 
 
-* Default: ``/sounds/``
+* Default: ``sounds/``
 
 
 This option only makes sense in conjunction with the `play_sounds`_ option and
 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
 specifies the URL of the sound files to be played (exluding the file names

+ 2 - 2
src/converse-notification.js

@@ -32,8 +32,8 @@ converse.plugins.add('converse-notification', {
             chatstate_notification_blacklist: [],
             chatstate_notification_blacklist: [],
             // ^ a list of JIDs to ignore concerning chat state notifications
             // ^ a list of JIDs to ignore concerning chat state notifications
             play_sounds: true,
             play_sounds: true,
-            sounds_path: '/sounds/',
-            notification_icon: '/logo/conversejs-filled.svg'
+            sounds_path: 'sounds/',
+            notification_icon: 'logo/conversejs-filled.svg'
         });
         });
 
 
         _converse.isOnlyChatStateNotification = (msg) =>
         _converse.isOnlyChatStateNotification = (msg) =>