Fixes #955
parent
b188750e03
commit
234a17c608
16
type/web.ts
16
type/web.ts
|
@ -13,19 +13,25 @@ import {
|
|||
|
||||
export type BuiltinSettings = {
|
||||
indexPage: string;
|
||||
customStyles?: string | string[];
|
||||
plugOverrides?: Record<string, Partial<Manifest>>;
|
||||
shortcuts?: Shortcut[];
|
||||
hideSyncButton?: boolean;
|
||||
hideEditButton?: boolean;
|
||||
useSmartQuotes?: boolean;
|
||||
maximumAttachmentSize?: number;
|
||||
defaultLinkStyle?: string;
|
||||
// Open the last page that was open when the app was closed
|
||||
pwaOpenLastPage?: boolean;
|
||||
// UI visuals
|
||||
hideEditButton?: boolean;
|
||||
hideSyncButton?: boolean;
|
||||
actionButtons: ActionButton[];
|
||||
pageDecorations?: PageDecoration[];
|
||||
// Format: compatible with docker ignore
|
||||
spaceIgnore?: string;
|
||||
emoji?: EmojiConfig;
|
||||
// DEPRECATED: Use space styles instead
|
||||
customStyles?: string | string[];
|
||||
// DEPRECATED: Use shortcuts instead
|
||||
plugOverrides?: Record<string, Partial<Manifest>>;
|
||||
// NOTE: Bit niche, maybe delete at some point?
|
||||
defaultLinkStyle?: string;
|
||||
};
|
||||
|
||||
export type PanelConfig = {
|
||||
|
|
|
@ -451,7 +451,7 @@ export class Client {
|
|||
);
|
||||
});
|
||||
|
||||
if (location.hash === "#boot") {
|
||||
if (location.hash === "#boot" && this.settings.pwaOpenLastPage !== false) {
|
||||
(async () => {
|
||||
// Cold start PWA load
|
||||
const lastPage = await this.stateDataStore.get([
|
||||
|
|
|
@ -19,6 +19,9 @@ hideSyncButton: false
|
|||
# Hide the edit button (available on mobile only)
|
||||
hideEditButton: true # defaults to 'false'
|
||||
|
||||
# In PWA mode, SilverBullet automatically reopens the last opened page on boot, this can be disabled
|
||||
pwaOpenLastPage: true
|
||||
|
||||
# Configure the shown action buttons (top right bar)
|
||||
actionButtons:
|
||||
- icon: home # Use any icon from https://feathericons.com
|
||||
|
|
Loading…
Reference in New Issue