()
| 961 | } |
| 962 | |
| 963 | function saveContent() { |
| 964 | if (win.downloadAllContentSaveAsZip && saveAsZip) { |
| 965 | win.downloadAllContentSaveAsZip(rCats, i18n.info.replace("#t#", location.href), content => { |
| 966 | saveAs(content, document.title.replace(/[\*\/:<>\?\\\|\r\n,]/g, "_") + ".zip"); |
| 967 | }); |
| 968 | } else { |
| 969 | var blob = new Blob([i18n.info.replace("#t#", location.href) + "\r\n\r\n" + rCats.join("\r\n\r\n")], {type: "text/plain;charset=utf-8"}); |
| 970 | saveAs(blob, document.title.replace(/[\*\/:<>\?\\\|\r\n,]/g, "_") + ".txt"); |
| 971 | } |
| 972 | } |
| 973 | |
| 974 | function initTempSave(txtDownContent){ |
| 975 | var tempSavebtn = txtDownContent.querySelector('#tempSaveTxt'); |
no outgoing calls
no test coverage detected