File tree Expand file tree Collapse file tree 4 files changed +6
-10
lines changed
Expand file tree Collapse file tree 4 files changed +6
-10
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change 11/** @jsx jsx */
2+
23import React from "react" ;
34import { useEffect } from "react" ;
45import { jsx } from "@emotion/react" ;
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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-
5850const apolloClientId = cuid ( ) ;
5951
6052function initializeHook ( ) {
You can’t perform that action at this time.
0 commit comments