Support Firefox

Former-commit-id: 5dfdf8fcfaa4ece4ae0202580d1b337ae0d0e3d0 [formerly f49d287f19091bf117845380c1023f7b9486cf75]
Former-commit-id: aaf50829e6a70257bfcd70323a4aed4bdb8ef122
This commit is contained in:
Jaifroid 2019-03-29 17:43:00 +00:00
parent fab823037d
commit b0ffc12381

View File

@ -2647,7 +2647,7 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies', 'q', 'module'
title = title.replace(/(\.html?)*$/i, '.html');
var filename = title.replace(/[\/\\:*?"<>|]/g, '_');
var blob = new Blob([iframeArticleContent.documentElement.outerHTML], { type: 'text/html' });
uiUtil.displayFileDownloadAlert(filename, false, 'text/html', blob);
uiUtil.displayFileDownloadAlert(filename, true, 'text/html', blob);
// Clean up page
printCleanup();
params.handlingBreakoutLink = false;