// Add option to download files kbook.webviewexData.onUnsupportedMimeType = function (url, mimetype) { try { var dialog = kbook.model.getConfirmationDialog(); dialog.target = this; dialog.onOk = function () { PARAMS.Core.shell.exec("/usr/bin/wget -P /Data " + url); }; dialog.onNo = function () { }; dialog.openDialog("fskin:/l/strings/STR_UI_BUTTON_DOWNLOAD_NOW".idToString() + "?\n\nURL: " + url + "\nMIME: " +mimetype, 0); } catch (ignore) { } };