mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 19:14:12 +01:00
Fix minor bugs and remove dead code.
--HG-- extra : rebase_source : 2b724d92734c547be0fc808a4e39fde0bc339542
This commit is contained in:
@@ -1144,7 +1144,10 @@ var Buffer = Module("Buffer", {
|
||||
|
||||
let ext = uri.fileExtension || "txt";
|
||||
if (doc.contentType)
|
||||
ext = services.mime.getPrimaryExtension(doc.contentType, ext);
|
||||
try {
|
||||
ext = services.mime.getPrimaryExtension(doc.contentType, ext);
|
||||
}
|
||||
catch (e) {}
|
||||
|
||||
if (!isString(doc))
|
||||
return io.withTempFiles(function (temp) {
|
||||
|
||||
Reference in New Issue
Block a user