summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/libs/bootstrap.js
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2019-05-08 14:23:53 +0000
committerXavier Morel <xmo@odoo.com>2019-05-08 14:23:53 +0000
commit1121f011962a689165bdd7d66b985cd586a1554d (patch)
treee0d8951a58f9f62af08be2a06b5ac6c419c106f4 /addons/web/static/src/js/libs/bootstrap.js
parent1679b0e92668325916b73404dfb1d71f681f0298 (diff)
[FIX] bus: crashmanager popup if beep can't be played
According to MDN, HTMLMediaElement returns > A Promise which is resolved when playback has been started, or is > rejected if for any reason playback cannot be started. > > Note: Older browsers may not return a value from play(). Since un-resolved un-handled promises re-raise and trigger the crash manager, this is extremely noticeable if the browser doesn't support the media type or is not currently allowed to play medias (e.g. configured to prevent auto-play). This just avoids the error, but eventually it might be useful to display a toast noting the user could allow sounds iff the rejection reason is NotAllowedError. This fix would probably be implementable / implemented on older revisions (which might have the issue, just not as prominent as unhandledrejection is not hooked into the crash manager). closes odoo/odoo#33260 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/libs/bootstrap.js')
0 files changed, 0 insertions, 0 deletions