From 7d49dff0747f69e96ab83a98b97ece96d4268b36 Mon Sep 17 00:00:00 2001
From: anthops <32993852+anthops@users.noreply.github.com>
Date: Wed, 23 Apr 2025 16:32:52 +0000
Subject: [PATCH] fix: prefer webgl for devices with webgpu and no float32-blendable feature flag #1899 (#1933)

---
 quartz/util/resources.tsx |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/quartz/util/resources.tsx b/quartz/util/resources.tsx
index 2ec8561..d95333e 100644
--- a/quartz/util/resources.tsx
+++ b/quartz/util/resources.tsx
@@ -65,3 +65,10 @@
   js: JSResource[]
   additionalHead: (JSX.Element | ((pageData: QuartzPluginData) => JSX.Element))[]
 }
+
+export type StringResource = string | string[] | undefined
+export function concatenateResources(...resources: StringResource[]): StringResource {
+  return resources
+    .filter((resource): resource is string | string[] => resource !== undefined)
+    .flat()
+}

--
Gitblit v1.10.0