Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firstrun: Fix autodetect being successful unconditionally. #88

Open
wants to merge 1 commit into
base: mailextension
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/firstrun.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ async function on_load() {
}

var latex_path = await messenger.LegacyPrefs.getPref("tblatex.latex_path");
if (latex_path.length > 0 && messenger.LatexIt.file_exists(latex_path)) {
if (latex_path.length > 0 && await messenger.LatexIt.file_exists(latex_path)) {
document.getElementById("latex_path").appendChild(document.createTextNode(latex_path));
document.getElementById("latex_icon").src = "accept.png";
} else {
document.getElementById("latex_path").innerHTML = "<span style='color: #EB887C; font-weight: bold;'>Not Found!</span>";
document.getElementById("button_yes").setAttribute("disabled", "disabled");
}
var dvipng_path = await messenger.LegacyPrefs.getPref("tblatex.dvipng_path");
if (dvipng_path.length > 0 && messenger.LatexIt.file_exists(dvipng_path)) {
if (dvipng_path.length > 0 && await messenger.LatexIt.file_exists(dvipng_path)) {
document.getElementById("dvipng_path").appendChild(document.createTextNode(dvipng_path));
document.getElementById("dvipng_icon").src = "accept.png";
} else {
Expand Down