mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
fix(editor): safari compat for lit host (#10514)
Fixed this white screen crash on mobile safari: <img src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/lEGcysB4lFTEbCwZ8jMv/00bffd51-8e06-4d37-88d4-6f5020cd503d.png" width="500">
This commit is contained in:
@@ -58,7 +58,7 @@ export class EditorHost extends SignalWatcher(
|
||||
}
|
||||
|
||||
const widgetViews = this.std.provider.getAll(WidgetViewIdentifier);
|
||||
const widgets = widgetViews.entries().reduce(
|
||||
const widgets = Array.from(widgetViews.entries()).reduce(
|
||||
(mapping, [key, tag]) => {
|
||||
const [widgetFlavour, id] = key.split('|');
|
||||
if (widgetFlavour === flavour) {
|
||||
|
||||
Reference in New Issue
Block a user