Skip to content

Commit 8de003e

Browse files
committed
feat: Post-roast improvements
1 parent 6402714 commit 8de003e

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

apps/browser-extension/src/routes/settings/+page.svelte

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@
1111
async function activateLicense(e: SubmitEvent) {
1212
e.preventDefault();
1313
14-
if (licenseEmail === '[email protected]') {
15-
$chargeId = 'fake-charge-id';
16-
17-
localStorage.setItem('roastChargeId', 'fake-charge-id');
18-
19-
return;
20-
}
21-
2214
try {
2315
const req = await fetch(PUBLIC_CUSTOMER_VERIFICATION_WORKER_URL, {
2416
method: 'POST',

apps/browser-extension/static/content.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,3 @@ function createObserver() {
4646
const observer = createObserver();
4747

4848
observer.observe(document.body, { childList: true, subtree: true });
49-
50-
if (location.href.includes('/pull/') && location.href.includes('/files')) {
51-
// Try a few times to inject the button, as GitHub's UI might load async
52-
const attempts = [0, 500, 1000, 2000, 4000, 8000];
53-
attempts.forEach((delay) => {
54-
setTimeout(() => {
55-
if (!document.querySelector('.js-roast-button')) {
56-
injectRoastButton();
57-
}
58-
}, delay);
59-
});
60-
}

0 commit comments

Comments
 (0)