Last analyzed 424cb2d 6 days ago
Default analysis branch is
Currently analyzing run
Found the usage of undeclared variables JS-0125
Bug risk
2 months agoa year old
'webroot' is not defined
 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});
'webroot' is not defined
12
13export function getPageThread() {
14	let pathname = window.location.pathname;
15	if(typeof webroot == "string" && webroot != "/") {16		pathname = pathname.slice(webroot.length);
17		if(pathname === "" || pathname[0] != '/') {
18			pathname = "/" + pathname;
'webroot' is not defined
13export function getPageThread() {
14	let pathname = window.location.pathname;
15	if(typeof webroot == "string" && webroot != "/") {
16		pathname = pathname.slice(webroot.length);17		if(pathname === "" || pathname[0] != '/') {
18			pathname = "/" + pathname;
19		}
'webroot' is not defined
37	let thread = {board: currentBoard(), thread: 0};
38	let pathname = location.pathname;
39	if(typeof webroot == "string" && webroot != "/") {
40		pathname = pathname.slice(webroot.length);41		if(pathname === "" || pathname[0] != '/') {
42			pathname = "/" + pathname;
43		}
'webroot' is not defined
36	// returns the board and thread ID if we are viewing a thread
37	let thread = {board: currentBoard(), thread: 0};
38	let pathname = location.pathname;
39	if(typeof webroot == "string" && webroot != "/") {40		pathname = pathname.slice(webroot.length);
41		if(pathname === "" || pathname[0] != '/') {
42			pathname = "/" + pathname;