Merge pull request #2472 from ZBoxApp/PLT-2392
PLT-2392: Fix for Notification sound broken
Этот коммит содержится в:
@@ -20,6 +20,7 @@ import React from 'react';
|
|||||||
import {FormattedTime} from 'react-intl';
|
import {FormattedTime} from 'react-intl';
|
||||||
|
|
||||||
import icon50 from 'images/icon50x50.png';
|
import icon50 from 'images/icon50x50.png';
|
||||||
|
import bing from 'images/bing.mp3';
|
||||||
|
|
||||||
export function isEmail(email) {
|
export function isEmail(email) {
|
||||||
// writing a regex to match all valid email addresses is really, really hard (see http://stackoverflow.com/a/201378)
|
// writing a regex to match all valid email addresses is really, really hard (see http://stackoverflow.com/a/201378)
|
||||||
@@ -187,7 +188,7 @@ var canDing = true;
|
|||||||
|
|
||||||
export function ding() {
|
export function ding() {
|
||||||
if (!isBrowserFirefox() && canDing) {
|
if (!isBrowserFirefox() && canDing) {
|
||||||
var audio = new Audio('/static/images/bing.mp3');
|
var audio = new Audio(bing);
|
||||||
audio.play();
|
audio.play();
|
||||||
canDing = false;
|
canDing = false;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ var config = {
|
|||||||
loaders: ['style', 'css']
|
loaders: ['style', 'css']
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.(png|eot|tiff|svg|woff2|woff|ttf|gif)$/,
|
test: /\.(png|eot|tiff|svg|woff2|woff|ttf|gif|mp3)$/,
|
||||||
loader: 'file',
|
loader: 'file',
|
||||||
query: {
|
query: {
|
||||||
name: 'files/[hash].[ext]'
|
name: 'files/[hash].[ext]'
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user