mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-18 08:43:53 +01:00
Bugfix when content isn't a string.
This commit is contained in:
parent
95e171e19a
commit
d6c0cff3bd
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ function(matrixService, $rootScope, $q, $timeout, mPresence) {
|
|||
// bit strange to put the impl in this service though, but I can't think of a better
|
||||
// file to put it in.
|
||||
$rootScope.containsBingWord = function(content) {
|
||||
if (!content) {
|
||||
if (!content || $.type(content) != "string") {
|
||||
return false;
|
||||
}
|
||||
var bingWords = matrixService.config().bingWords;
|
||||
|
|
Loading…
Reference in a new issue