Skip to content

Commit 2ede895

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 62302f6 + 5e66ad6 commit 2ede895

File tree

4 files changed

+59
-57
lines changed

4 files changed

+59
-57
lines changed

packages/chrome/public/controller.sw.js

Lines changed: 47 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/chrome/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export function App(props: {}, cx: ComponentContext) {
7878
}
7979
App.style = css`
8080
:scope {
81-
background-color: var(--toolbar);
81+
background-color: var(--frame);
8282
--separator-color: color-mix(in srgb, currentColor 10%, transparent);
8383
}
8484
.separator {

packages/chrome/src/proxy/scramjet.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ export function createFetchHandler(controller: Controller) {
312312
let promises: Promise<any>[] = [];
313313
for (const context of contexts) {
314314
if (context.alive()) {
315-
console.log("sending to " + context.id, context.windowproxy);
315+
// console.log("sending to " + context.id, context.windowproxy);
316316
promises.push(
317317
context.rpc.call("setCookie", {
318318
url: url.href,
@@ -322,18 +322,18 @@ export function createFetchHandler(controller: Controller) {
322322
}
323323
}
324324
if (promises.length === 0) return;
325-
console.log("actually sent");
325+
// console.log("actually sent");
326326

327327
// a context could be deadlocked, so add a safety
328-
await Promise.race([
329-
new Promise((res) =>
330-
setTimeout(() => {
331-
console.error("a context deadlocked! hit timeout");
332-
res(null);
333-
}, 1000)
334-
),
335-
Promise.all(promises),
336-
]);
328+
// await Promise.race([
329+
// new Promise((res) =>
330+
// setTimeout(() => {
331+
// console.error("a context deadlocked! hit timeout");
332+
// res(null);
333+
// }, 1000)
334+
// ),
335+
// Promise.all(promises),
336+
// ]);
337337
},
338338
});
339339

packages/inject/src/scramjet.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
import {
22
CookieJar,
33
iswindow,
4-
loadAndHook,
54
SCRAMJETCLIENT,
65
ScramjetClient,
7-
ScramjetClientInit,
8-
ScramjetInitConfig,
9-
ScramjetInterface,
106
setWasm,
117
} from "@mercuryworkshop/scramjet";
128
import { FrameSequence, InjectScramjetInit } from "./types";

0 commit comments

Comments
 (0)