Made the message comparison more strict
This commit is contained in:
@ -639,7 +639,7 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
function getCurrentBillBoard(cb) {
|
function getCurrentBillBoard(cb) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '/api/Flyers/findOne?'
|
url: '/api/flyers/findOne?'
|
||||||
+ 'filter=%7B%22order%22%3A%20%20%22id%20DESC%22%7D',
|
+ 'filter=%7B%22order%22%3A%20%20%22id%20DESC%22%7D',
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
dataType: 'JSON',
|
dataType: 'JSON',
|
||||||
@ -666,8 +666,13 @@ $(document).ready(function() {
|
|||||||
!== 'undefined' && main.localStorageIO('lastBillBoardSeen')
|
!== 'undefined' && main.localStorageIO('lastBillBoardSeen')
|
||||||
!== null ? main.localStorageIO('lastBillBoardSeen') : '';
|
!== null ? main.localStorageIO('lastBillBoardSeen') : '';
|
||||||
if (
|
if (
|
||||||
data.replace(/\s/gi, '')
|
data.replace(/\s*/gi, '')
|
||||||
!== resp.message.replace(/\s/gi, '')
|
.replace(/\&\w*\;/gi, '')
|
||||||
|
.replace(/(\<|\/|\>)/gi, '')
|
||||||
|
!== resp.message
|
||||||
|
.replace(/\s*/gi, '')
|
||||||
|
.replace(/\&\w*\;/gi, '')
|
||||||
|
.replace(/(\<|\/|\>)/gi, '')
|
||||||
&& resp.active
|
&& resp.active
|
||||||
) {
|
) {
|
||||||
$('#billContent').html(resp.message);
|
$('#billContent').html(resp.message);
|
||||||
|
Reference in New Issue
Block a user