@@ -310,13 +310,16 @@ function injectGitcassoScript(key: keyof typeof PAGES, html: string) {
310310 const urlParts = getUrlParts ( key )
311311
312312 // Inject patched content script with location patching
313- const contentScriptTag = `
313+ const contentScriptTag =
314+ `
314315 <script>
315316 // Patch window.location before loading content script
316317 console.log('Patching window.location to simulate original URL...');
317318
318319 // Use history.pushState to change the pathname
319- window.history.pushState({}, '', '` + urlParts . pathname + `');
320+ window.history.pushState({}, '', '` +
321+ urlParts . pathname +
322+ `');
320323
321324 console.log('Location patched:', {
322325 hostname: window.location.hostname,
@@ -342,7 +345,9 @@ function injectGitcassoScript(key: keyof typeof PAGES, html: string) {
342345 const script = document.createElement('script');
343346 script.textContent = browserMocks + patchedCode;
344347 document.head.appendChild(script);
345- console.log('Gitcasso content script loaded with location patching for:', '` + urlParts . href + `');
348+ console.log('Gitcasso content script loaded with location patching for:', '` +
349+ urlParts . href +
350+ `');
346351 })
347352 .catch(error => {
348353 console.error('Failed to load and patch content script:', error);
0 commit comments