We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f7b8df4 + a379f25 commit b07e108Copy full SHA for b07e108
src/Blazor.Extensions.Logging.JS/src/Initialize.ts
@@ -22,9 +22,14 @@ function initialize() {
22
// When the library is loaded in a browser via a <script> element, make the
23
// following APIs available in global scope for invocation from JS
24
window['BlazorExtensions'] = {
25
- Logging: {
26
- BrowserConsoleLogger: {
27
- }
+ };
+ }
+
28
+ if (typeof window['BlazorExtensions']['Logging'] === 'undefined') {
29
+ // When the library is loaded in a browser via a <script> element, make the
30
+ // following APIs available in global scope for invocation from JS
31
+ window['BlazorExtensions']['Logging'] = {
32
+ BrowserConsoleLogger: {
33
}
34
};
35
0 commit comments