Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
olamothe committed Apr 22, 2024
1 parent ef0ec85 commit 9e396c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/PublicPathUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class PublicPathUtils {
return find(document.querySelectorAll('.coveo-script'), el => this.isScript(el));
}

private static parseScriptDirectoryPath(script?: HTMLScriptElement) {
private static parseScriptDirectoryPath(script: HTMLScriptElement) {
return script.src.replace(/\/[\w\.-]*\.js((#|\?)(.*)){0,1}$/, '/');
}

Expand Down

0 comments on commit 9e396c0

Please sign in to comment.