Last analyzed 424cb2d 6 days ago
Default analysis branch is
Currently analyzing run
Avoid use of == and != JS-0050
Anti-pattern
2 months agoa year old
Expected '!==' and instead saw '!='.
 4import "jquery-ui/ui/keycode";
 5import "jquery-ui/ui/widgets/tabs";
 6$(() => {
 7	if(window.location.pathname != webroot + "manage/filebans") 8		return;
 9	$("div#fileban-tabs").tabs();
10});
Expected '===' and instead saw '=='.
239		quoted + 
240		msgbox.value.slice(cursor);
241	
242	if(msgbox.id == "postmsg")243		window.scroll(0,msgbox.offsetTop - 48);
244	msgbox.focus();
245}
Expected '!==' and instead saw '!='.
234	}
235	let cursor = (msgbox.selectionStart !== undefined)?msgbox.selectionStart:msgbox.value.length;
236	let quoted = lines.join("\n");
237	if(quoted != "") quoted += "\n";238	msgbox.value = msgbox.value.slice(0, cursor) + `>>${no}\n` +
239		quoted + 
240		msgbox.value.slice(cursor);
Expected '===' and instead saw '=='.
134}
135
136export function initPostPreviews($post = null) {
137	if(getPageThread().board == "" && $post === null) return;138	doClickPreview = getBooleanStorageVal("enablepostclick", true);
139	doHoverPreview = getBooleanStorageVal("enableposthover", false);
140	let $refs = null;
Expected '===' and instead saw '=='.
121		}
122		return;
123	}
124	if(e.type == "click") {125		$.get(href, data => {
126			$post = $(data).find(`div#op${postID}, div#reply${postID}`).first();
127			if($post.length < 1) return; // post not on this page.