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