Уборка Unreachable statement. Замена === на == и !== на != в яваскриптах из-за ошибок с нестрогой типизацией при переходе на 7.4.

This commit is contained in:
2023-04-08 18:14:19 +03:00
parent 3f3ffc2114
commit cfaf82f73a
76 changed files with 2079 additions and 1918 deletions
+5 -5
View File
@@ -16,8 +16,8 @@ function bodyLoaded() {
//генерируем смайлики
let i = 0,
j = '';
while (i !== -1) {
if (top.sml[i] !== undefined) {
while (i != -1) {
if (top.sml[i] != undefined) {
j += `<img style="cursor:pointer" onclick="chat.addSmile(\'${top.sml[i]}\')" src="https://${c['img']}/i/smile/${top.sml[i]}.gif" width="${top.sml[i + 1]}" height="${top.sml[i + 2]}" title=":${top.sml[i]}:"/> `;
} else i = -4;
i += 3;
@@ -28,7 +28,7 @@ function bodyLoaded() {
function startEngine() {
//стандартные настройки
if ($.cookie('chatCfg0') === undefined) {
if ($.cookie('chatCfg0') == undefined) {
$.cookie('chatCfg0', 2, {expires: 320});
$.cookie('chatCfg1', 'Black', {expires: 320});
}
@@ -103,12 +103,12 @@ function saveChatConfig() {
var i = 0;
while (i != -1) {
if ($('#chcf' + i).attr('id') != undefined) {
if (i < 2 || i === 8) {
if (i < 2 || i == 8) {
$.cookie(`chatCfg${i}`, $(`#chcf${i}`).val(), {
expires: 320
});
} else {
if ($(`#chcf${i}`).attr('checked') === true) {
if ($(`#chcf${i}`).attr('checked') == true) {
$.cookie(`chatCfg${i}`, 1, {
expires: 320
});