Skip to content

Commit 2e9c5c5

Browse files
Cleanup
1 parent b4d792c commit 2e9c5c5

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

src/application/components/Layouts/Navigation.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ export const Navigation: React.FC<NavigationProps> = ({
119119
target="_blank"
120120
title="Apollo Client developer documentation"
121121
css={logoLinkStyles}
122-
rel="noreferrer"
123122
>
124123
<ApolloLogo css={logoStyles} />
125124
</a>

src/application/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/** @jsx jsx */
2+
23
import React from "react";
34
import { useEffect } from "react";
45
import { jsx } from "@emotion/react";

src/extension/background/background.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,12 @@ chrome.runtime.onConnect.addListener(port => {
1717
try {
1818
port.postMessage(message);
1919
} catch {
20+
/*
21+
* With multiple frames, we receive a onDisconnect event twice,
22+
* resulting in stale ports. Without the try/catch, we drop
23+
* legitimate messages as well.
24+
*/
2025
console.error('Error sending message to ' + port.name)
21-
// do nothing as we don't care about dead ports - think about this again
2226
}
2327
});
2428

src/extension/tab/hook.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,6 @@ type Hook = {
4747
getCache: () => void;
4848
};
4949

50-
function inIframe () {
51-
try {
52-
return window.self !== window.top;
53-
} catch (e) {
54-
return true;
55-
}
56-
}
57-
5850
const apolloClientId = cuid();
5951

6052
function initializeHook() {

0 commit comments

Comments
 (0)