mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-26 15:15:46 +01:00
Fix NS_ERROR_NOT_INITIALIZED on some :write filename completions.
This commit is contained in:
@@ -1517,7 +1517,12 @@ var Buffer = Module("Buffer", {
|
||||
if (type === "text/plain")
|
||||
ext = "." + (currExt || "txt");
|
||||
else
|
||||
ext = "." + services.mime.getPrimaryExtension(type, currExt);
|
||||
try {
|
||||
ext = "." + services.mime.getPrimaryExtension(type, currExt);
|
||||
}
|
||||
catch (e) {
|
||||
ext = currExt ? "." + curExt : "";
|
||||
}
|
||||
}
|
||||
else if (currExt)
|
||||
ext = "." + currExt;
|
||||
|
||||
Reference in New Issue
Block a user