Skip to content

Commit b981c29

Browse files
committed
Format fixup.
1 parent c859f14 commit b981c29

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

browser-extension/src/entrypoints/content.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { EnhancerRegistry, TextareaRegistry } from '../lib/registries'
66
const enhancers = new EnhancerRegistry()
77
const enhancedTextareas = new TextareaRegistry()
88

9-
// Expose for debugging in har:view
10-
; (window as any).gitcassoTextareaRegistry = enhancedTextareas
9+
// Expose for debugging in har:view
10+
;(window as any).gitcassoTextareaRegistry = enhancedTextareas
1111

1212
function sendEventToBackground(type: 'ENHANCED' | 'DESTROYED', spot: CommentSpot): void {
1313
const message: CommentEvent = {

browser-extension/tests/har-view.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)