File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
web-app/src/services/state Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -156,12 +156,13 @@ class ReactWebView {
156156 <meta charset='utf-8'>
157157 <meta name='viewport' content='width=device-width,initial-scale=1,shrink-to-fit=no'>
158158 <meta name='theme-color' content='#000000'>
159+ <meta http-equiv='Content-Security-Policy' content="font-src vscode-resource://*; img-src vscode-resource: https:; script-src ${ scripts . map ( script => `'nonce-${ script . nonce } '` ) . join ( ' ' ) } ; style-src vscode-resource: 'unsafe-inline' http: https: data:;">
159160 <title>React App</title>
160- <link rel='manifest' href='./manifest.json' />
161161
162+ <link rel='manifest' href='./manifest.json' />
162163 <link rel='stylesheet' href='https://unpkg.com/@alifd/next/dist/next.css' />
163164 ${ styles . map ( styleUri => `<link rel='stylesheet' type='text/css' href='${ styleUri } '>` ) . join ( '\n' ) }
164- <meta http-equiv='Content-Security-Policy' content="font-src *; img-src vscode-resource: https:; script-src ${ scripts . map ( script => `'nonce- ${ script . nonce } '` ) . join ( ' ' ) } ; style-src vscode-resource: 'unsafe-inline' http: https: data:;">
165+
165166 <base href='${ buildUri } /'>
166167 </head>
167168
Original file line number Diff line number Diff line change @@ -5,7 +5,16 @@ import * as G from 'typings/graphql'
55
66class Storage < T > {
77 private key : string
8- private storage = localStorage
8+ // TODO: replace somehow with localStorage
9+ // window.localStorage not working inside of vscode
10+ private storage = {
11+ getItem ( key : string ) {
12+ return null
13+ } ,
14+ setItem ( key : string , value : string ) {
15+ return
16+ }
17+ }
918 constructor ( key : string ) {
1019 this . key = key
1120 }
You can’t perform that action at this time.
0 commit comments