Avoid using CSS variables for background images because they aren't fetched through the service worker in Safari (#149259)

* Fixes #149256: Avoid using CSS variables for background images because they aren't fetched through the service worker in Safari

* Fix compilation errors
This commit is contained in:
Alexandru Dima
2022-05-11 17:12:40 +02:00
committed by GitHub
parent 643624035a
commit 22f22cfdf1
8 changed files with 42 additions and 37 deletions

View File

@@ -1289,7 +1289,7 @@ RemoteAuthorities.setPreferredWebSchema(/^https:/.test(window.location.href) ? '
/**
* returns url('...')
*/
export function asCSSUrl(uri: URI): string {
export function asCSSUrl(uri: URI | null | undefined): string {
if (!uri) {
return `url('')`;
}