Skip to content
Snippets Groups Projects
Select Git revision
  • 6dd6d32d961bcc48555c384623b4051b45fe8455
  • master default protected
  • 1.31
  • 4.25.3
  • 4.25.2
  • 4.25.1
  • 4.25.0
  • 4.24.3
  • 4.24.2
  • 4.24.1
  • 4.24.0
  • 4.23.6
  • 4.23.5
  • 4.23.4
  • 4.23.3
  • 4.23.2
  • 4.23.1
  • 4.23.0
  • 4.22.3
  • 4.22.2
  • 4.22.1
  • 4.22.0
  • 4.21.0
23 results

config-manager.mjs

Blame
  • config-manager.mjs 738 B
    
    /**
     * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
     * Node module: @schukai/monster
     * This file is licensed under the AGPLv3 License.
     * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
     */
    
    import {addAttributeToken} from "../../../dom/attributes.mjs";
    import {ATTRIBUTE_ERRORMESSAGE} from "../../../dom/constants.mjs";
    
    export {ConfigManagerStyleSheet}
    
    /**
     * @private
     * @type {CSSStyleSheet}
     */
    const ConfigManagerStyleSheet = new CSSStyleSheet();
    
    try {
      ConfigManagerStyleSheet.insertRule(`
    @layer configmanager { 
    [data-monster-role=control]{display:none} 
    }`, 0);
    } catch (e) {
      addAttributeToken(document.getRootNode().querySelector('html'), ATTRIBUTE_ERRORMESSAGE, e + "");
    }