mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 01:55:59 +00:00
19 lines
418 B
Svelte
19 lines
418 B
Svelte
<script lang="ts">
|
|
import { activeTab, currentDatabase } from '../stores';
|
|
import getElectron from './getElectron';
|
|
import _ from 'lodash';
|
|
|
|
$: title = _.compact([$activeTab?.title, $currentDatabase?.name, 'DbGate']).join(' - ');
|
|
|
|
$: {
|
|
const electron = getElectron();
|
|
if (electron) {
|
|
electron.send('set-title', title);
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<svelte:head>
|
|
<title>{title}</title>
|
|
</svelte:head>
|