UNPKG

kui-shell

Version:

This is the monorepo for Kui, the hybrid command-line/GUI electron-based Kubernetes tool

15 lines 605 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const debug_1 = require("debug"); const capabilities_1 = require("@kui-shell/core/api/capabilities"); const persistence_1 = require("./persistence"); const debug = debug_1.default('core/webapp/themes/init'); exports.default = () => { if (!capabilities_1.default.isHeadless()) { if (capabilities_1.default.inBrowser() || !document.body.hasAttribute('kui-theme')) { debug('loading theme'); return persistence_1.switchToPersistedThemeChoice(); } } }; //# sourceMappingURL=init.js.map