mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
closed #1959
This commit is contained in:
@@ -57,6 +57,8 @@ define('sounds', ['buzz'], function(buzz) {
|
||||
};
|
||||
|
||||
Sounds.playFile = function(fileName) {
|
||||
if (!fileName) return;
|
||||
|
||||
function play() {
|
||||
if (loadedSounds[fileName]) {
|
||||
loadedSounds[fileName].play();
|
||||
|
||||
@@ -7,9 +7,7 @@
|
||||
async = require('async'),
|
||||
nconf = require('nconf'),
|
||||
session = require('express-session'),
|
||||
db,
|
||||
mongoClient,
|
||||
mongoStore;
|
||||
db, mongoClient;
|
||||
|
||||
module.questions = [
|
||||
{
|
||||
|
||||
@@ -79,7 +79,7 @@ module.exports = function(Meta) {
|
||||
var defaults = {
|
||||
'notification': 'notification.mp3',
|
||||
'chat-incoming': 'waterdrop-high.mp3',
|
||||
'chat-outgoing': 'waterdrop-low.mp3'
|
||||
'chat-outgoing': undefined
|
||||
};
|
||||
|
||||
return callback(null, defaults);
|
||||
|
||||
Reference in New Issue
Block a user