the safari fix messed it up in chrome

This commit is contained in:
Hannes Mannerheim 2016-01-23 16:49:21 +01:00
parent 8093f6d9b6
commit bb2837fe2b

View File

@ -2895,7 +2895,10 @@ $('body').on('keyup paste input', 'div.queet-box-syntax', function() {
}
});
currentVal = currentVal.replace(/&nbsp;<span/g,' <span'); // safari fix
// safari fix
if(typeof bowser.safari != 'undefined') {
currentVal = currentVal.replace(/&nbsp;<span/g,' <span');
}
$(this).siblings('.syntax-middle').html(currentVal);
});