mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-24 19:56:00 +00:00
view JSON log message
This commit is contained in:
@@ -211,16 +211,6 @@ export async function saveFileToDisk(
|
||||
}
|
||||
}
|
||||
|
||||
export function openWebLink(href) {
|
||||
const electron = getElectron();
|
||||
|
||||
if (electron) {
|
||||
electron.send('open-link', href);
|
||||
} else {
|
||||
window.open(href, '_blank');
|
||||
}
|
||||
}
|
||||
|
||||
export async function downloadFromApi(route: string, donloadName: string) {
|
||||
fetch(`${resolveApi()}/${route}`, {
|
||||
method: 'GET',
|
||||
@@ -240,4 +230,3 @@ export async function downloadFromApi(route: string, donloadName: string) {
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user