@@ -107,7 +107,7 @@ function setStorageLock( currentTime ) {
107107/**
108108 * Creates a logger object with log, warn, and error methods.
109109 *
110- * @param {boolean } [debugMode=false] - Whether to enable debug mode .
110+ * @param {boolean } [debugMode=false] - Whether all messages should be logged. If false, then only errors are logged .
111111 * @param {?string } [prefix=null] - Prefix to prepend to the console message.
112112 * @param {?string } [scriptModuleUrl=null] - The URL for the script module which is emitting the log. This is used for extensions.
113113 * @return {Logger } Logger object with log, info, warn, and error methods.
@@ -191,7 +191,7 @@ function createLogger(
191191 */
192192function getExtensionNameFromScriptModuleUrl ( scriptModuleUrl ) {
193193 try {
194- const url = new URL ( scriptModuleUrl ) ;
194+ const url = new URL ( scriptModuleUrl , win . location . href ) ;
195195 const matches = url . pathname . match (
196196 / \/ (?: t h e m e s | p l u g i n s ) \/ ( [ ^ \/ ] + ) \/ /
197197 ) ;
@@ -415,7 +415,7 @@ function extendElementData( xpath, properties ) {
415415}
416416
417417/**
418- * Compresses a ( JSON) string using CompressionStream API.
418+ * Compresses a JSON string using CompressionStream API.
419419 *
420420 * @param {string } jsonString - JSON string to compress.
421421 * @return {Promise<Blob> } Compressed data.
@@ -432,7 +432,7 @@ async function compress( jsonString ) {
432432}
433433
434434/**
435- * Stores the compressed URL metric data.
435+ * The compressed URL metric data.
436436 *
437437 * @see {debounceCompressUrlMetric}
438438 * @type {?Blob }
0 commit comments