<commit_before>let btnCheckalts = document.getElementById('btnCheckalts');
btnCheckalts.addEventListener('click', function () {

	if (window.hasRun_btnCheckalts) {
		return;
	}
	window.hasRun_btnCheckalts = true;

	browser.tabs.executeScript({ file: "/scripts/injected/checkalts.js" }).then(() => {
		let icons = [];
		icons.ok = browser.extension.getURL("/icons/ok.svg");
		icons.ko = browser.extension.getURL("/icons/ko.svg");
		icons.info = browser.extension.getURL("/icons/info.svg");
		let strings = [];
		strings.ok = _t("altOK");
		strings.ko = _t("altMissing");
		strings.info = _t("altEmpty");
		browser.tabs.query({ active: true, currentWindow: true }).then((tabs) => {
			browser.tabs.sendMessage(tabs[0].id, {
				a11ycss_checkalts: "checkalts",
				icons: icons,
				strings: strings
			});

		});

	});

});<commit_msg>webext: Cleaning useless code, for #292<commit_after>let btnCheckalts = document.getElementById('btnCheckalts');
btnCheckalts.addEventListener('click', function () {

	browser.tabs.executeScript({ file: "/scripts/injected/checkalts.js" }).then(() => {
		let icons = [];
		icons.ok = browser.extension.getURL("/icons/ok.svg");
		icons.ko = browser.extension.getURL("/icons/ko.svg");
		icons.info = browser.extension.getURL("/icons/info.svg");
		let strings = [];
		strings.ok = _t("altOK");
		strings.ko = _t("altMissing");
		strings.info = _t("altEmpty");
		browser.tabs.query({ active: true, currentWindow: true }).then((tabs) => {
			browser.tabs.sendMessage(tabs[0].id, {
				a11ycss_checkalts: "checkalts",
				icons: icons,
				strings: strings
			});

		});

	});

});
{'fraction_non_alphanumeric': 0.18917237087741132, 'fraction_numerical': 0.005600497822028625, 'mean_word_length': 4.36, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4420334', 'n_tokens_mistral': 604, 'n_tokens_neox': 541, 'n_words': 86}