Merge branch 'AliasIO:master' into master

main
Aliif Arief 4 years ago committed by GitHub
commit c6d2ccefd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -900,7 +900,7 @@ const Popup = {
i18n() i18n()
}, },
downloadCsv(event) { async downloadCsv(event) {
event.preventDefault() event.preventDefault()
const { csv, filename } = getCsv() const { csv, filename } = getCsv()
@ -909,11 +909,17 @@ const Popup = {
new Blob([csv.join('\n')], { type: 'text/csv;charset=utf-8' }) new Blob([csv.join('\n')], { type: 'text/csv;charset=utf-8' })
) )
chrome.downloads.download({ const granted = await promisify(chrome.permissions, 'request', {
url: file, permissions: ['downloads'],
filename,
}) })
if (granted) {
chrome.downloads.download({
url: file,
filename,
})
}
return false return false
}, },
} }

@ -73,9 +73,11 @@
"tabs", "tabs",
"webRequest", "webRequest",
"webNavigation", "webNavigation",
"downloads",
"http://*/*", "http://*/*",
"https://*/*" "https://*/*"
], ],
"optional_permissions": [
"downloads"
],
"content_security_policy": "script-src 'self'; object-src 'self'" "content_security_policy": "script-src 'self'; object-src 'self'"
} }

@ -3740,10 +3740,14 @@
6 6
], ],
"description": "Squarespace Commerce is an ecommerce platform designed to facilitate the creation of websites and online stores, with domain registration and web hosting included.", "description": "Squarespace Commerce is an ecommerce platform designed to facilitate the creation of websites and online stores, with domain registration and web hosting included.",
"headers": {
"server": "Squarespace"
},
"icon": "Squarespace.svg", "icon": "Squarespace.svg",
"implies": "Squarespace", "implies": "Squarespace",
"js": { "js": {
"SQUARESPACE_ROLLUPS.squarespace-commerce": "" "SQUARESPACE_ROLLUPS.squarespace-commerce": "",
"Static.SQUARESPACE_CONTEXT.templateVersion": "^(\\d(?:\\.\\d)?)$\\;version:\\1"
}, },
"pricing": [ "pricing": [
"low", "low",