mirror of
https://github.com/HeyPuter/puter
synced 2024-11-15 06:15:47 +00:00
Fix 8688ggu00
This commit is contained in:
parent
f54657a569
commit
bee0e19eaf
@ -1015,6 +1015,9 @@ window.addEventListener('message', async (event) => {
|
|||||||
let target_path;
|
let target_path;
|
||||||
let create_missing_ancestors = false;
|
let create_missing_ancestors = false;
|
||||||
|
|
||||||
|
console.warn(`The method ${event.data.msg} is deprecated - see docs.puter.com for more information.`);
|
||||||
|
event.data.filename = event.data.filename.replace(/(\.\.\/|\.\.\\)/g, '');
|
||||||
|
|
||||||
if(event.data.msg === 'saveToPictures')
|
if(event.data.msg === 'saveToPictures')
|
||||||
target_path = path.join(window.pictures_path, event.data.filename);
|
target_path = path.join(window.pictures_path, event.data.filename);
|
||||||
else if(event.data.msg === 'saveToDesktop')
|
else if(event.data.msg === 'saveToDesktop')
|
||||||
|
Loading…
Reference in New Issue
Block a user