Save attachments with macOS quarantine attribute
* Attachments: Always save file to downloads directory, show toast * Add new build:dev command for casual builds
This commit is contained in:
parent
65befde0fa
commit
1bf9ca7233
11 changed files with 202 additions and 52 deletions
|
@ -1135,7 +1135,7 @@
|
|||
"rule": "jQuery-html(",
|
||||
"path": "js/views/toast_view.js",
|
||||
"line": " this.$el.html(",
|
||||
"lineNumber": 21,
|
||||
"lineNumber": 22,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2018-09-15T00:38:04.183Z"
|
||||
},
|
||||
|
@ -1143,7 +1143,7 @@
|
|||
"rule": "jQuery-appendTo(",
|
||||
"path": "js/views/toast_view.js",
|
||||
"line": " toast.$el.appendTo(el);",
|
||||
"lineNumber": 34,
|
||||
"lineNumber": 36,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2019-11-06T19:56:38.557Z",
|
||||
"reasonDetail": "Protected from arbitrary input"
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
/**
|
||||
* @prettier
|
||||
*/
|
||||
export const saveURLAsFile = ({
|
||||
filename,
|
||||
url,
|
||||
document,
|
||||
}: {
|
||||
filename: string;
|
||||
url: string;
|
||||
document: Document;
|
||||
}): void => {
|
||||
const anchorElement = document.createElement('a');
|
||||
anchorElement.href = url;
|
||||
anchorElement.download = filename;
|
||||
anchorElement.click();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue