Skip to content

Commit

Permalink
Remove old processing of ZIP files
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Nov 5, 2024
1 parent cbe0d8c commit c8745df
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src-editor/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -727,16 +727,9 @@ class App extends GenericApp {
if (typeof data === 'string') {
// it is a link to the created file
const a = document.createElement('a');
if (data.startsWith('admin.')) {
// new controller
// actual position is http://IP:8081/adapter/javascript/index.html
// we need http://IP:8081/files/admin.0/zip/2023-06-20-scripts.zip
a.href = `../../files/${data}`;
} else {
// the data is "system.host.HOST.zip.2020-01-26-scripts.zip"
const parts = data.split('.zip.');
a.href = `./zip/${parts[0]}/${parts[1]}`;
}
// actual position is http://IP:8081/adapter/javascript/index.html
// we need http://IP:8081/files/admin.0/zip/2023-06-20-scripts.zip
a.href = `../../files/${data}`;
document.body.appendChild(a);
a.click();
a.remove();
Expand Down

0 comments on commit c8745df

Please sign in to comment.