UNPKG

@dbp-toolkit/common

Version:

You can provide attributes (e.g. `global-name`) for components inside the provider:

12 lines (10 loc) 230 B
class LoggerType { get debug() { if (window.location.hash.includes('debug')) { return console.debug; } else { return () => {}; } } } export const Logger = new LoggerType();