Prefixed tabs and instant feature flags with 'navigation.*'

This commit is contained in:
squidfunk
2020-09-27 10:13:41 +02:00
parent ce802a4913
commit 085117ef82
10 changed files with 18 additions and 15 deletions

View File

@@ -400,7 +400,10 @@ export function initialize(config: unknown) {
})
/* Enable instant loading, if not on file:// protocol */
if (config.features.includes("instant") && location.protocol !== "file:") {
if (
config.features.includes("navigation.instant") &&
location.protocol !== "file:"
) {
/* Fetch sitemap and extract URL whitelist */
base$

View File

@@ -30,8 +30,8 @@ import { SearchIndex, SearchTransformFn } from "integrations"
* Feature flags
*/
export type Feature =
| "tabs" /* Tabs navigation */
| "instant" /* Instant loading
| "navigation.tabs" /* Tabs navigation */
| "navigation.instant" /* Instant loading
/* ------------------------------------------------------------------------- */