Skip to content
Snippets Groups Projects
Select Git revision
  • 669fae0ef797ee44607996563c820d3766dadb08
  • master default protected
  • 1.31
  • 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
  • 4.20.1
23 results

console.mjs

Blame
  • datasource.mjs 807 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 { DatasourceStyleSheet };
    
    /**
     * @private
     * @type {CSSStyleSheet}
     */
    const DatasourceStyleSheet = new CSSStyleSheet();
    
    try {
    	DatasourceStyleSheet.insertRule(
    		`
    @layer datasource { 
    :host{display:none}:host(.intersection-observer){display:block;height:1px;overflow:hidden;width:1px} 
    }`,
    		0,
    	);
    } catch (e) {
    	addAttributeToken(
    		document.getRootNode().querySelector("html"),
    		ATTRIBUTE_ERRORMESSAGE,
    		e + "",
    	);
    }