mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 15:58:20 +00:00
fix #4947 spice: correct filename extension safari
Fix file extension for SPICE config download on AppleWebKit browsers to ensure proper application association on MacOS. Signed-off-by: Markus Frank <m.frank@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
c54ff6e901
commit
e8ed907b7e
@ -1401,10 +1401,11 @@ Ext.define('PVE.Utils', {
|
||||
css: 'display:none;visibility:hidden;height:0px;',
|
||||
});
|
||||
|
||||
// Note: we need to tell Android and Chrome the correct file name extension
|
||||
// Note: we need to tell Android, AppleWebKit and Chrome
|
||||
// the correct file name extension
|
||||
// but we do not set 'download' tag for other environments, because
|
||||
// It can have strange side effects (additional user prompt on firefox)
|
||||
if (navigator.userAgent.match(/Android|Chrome/i)) {
|
||||
if (navigator.userAgent.match(/Android|AppleWebKit|Chrome/i)) {
|
||||
link.download = name;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user