Fix sound notification in Internet Explorer (use mp3 file for IE and
other browsers which support audio/mp3 files)
1 files added
3 files modified
| | |
| | | "type": "roundcube-plugin", |
| | | "description": "Supports three methods of notification: 1. Basic - focus browser window and change favicon 2. Sound - play wav file 3. Desktop - display desktop notification (using webkitNotifications feature, supported by Chrome and Firefox with 'HTML5 Notifications' plugin).", |
| | | "license": "GNU GPLv3+", |
| | | "version": "0.6", |
| | | "version": "0.7", |
| | | "authors": [ |
| | | { |
| | | "name": "Aleksander Machniak", |
| | |
| | | // Sound notification |
| | | function newmail_notifier_sound() |
| | | { |
| | | var elem, src = 'plugins/newmail_notifier/sound.wav'; |
| | | var elem, src = 'plugins/newmail_notifier/sound', |
| | | plugin = navigator.mimeTypes ? navigator.mimeTypes['audio/mp3'] : {}; |
| | | |
| | | // Internet Explorer does not support wav files, |
| | | // support in other browsers depends on enabled plugins, |
| | | // so we use wav as a fallback |
| | | src += bw.ie || (plugin && plugin.enabledPlugin) ? '.mp3' : '.wav'; |
| | | |
| | | // HTML5 |
| | | try { |
| | |
| | | <email>alec@alec.pl</email> |
| | | <active>yes</active> |
| | | </lead> |
| | | <date>2013-09-12</date> |
| | | <date>2013-10-04</date> |
| | | <version> |
| | | <release>0.6</release> |
| | | <release>0.7</release> |
| | | <api>0.5</api> |
| | | </version> |
| | | <stability> |