From 8f5e260136bec973b3f1b60583cc16c17378cb3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Zi=C3=B3=C5=82kowski?= Date: Wed, 3 Jan 2024 17:20:05 +0100 Subject: [PATCH] Update lib/experimental/modules/class-gutenberg-modules.php Co-authored-by: Felix Arntz --- lib/experimental/modules/class-gutenberg-modules.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/experimental/modules/class-gutenberg-modules.php b/lib/experimental/modules/class-gutenberg-modules.php index ebdc22e58e8b62..5aa012f8e2f2c5 100644 --- a/lib/experimental/modules/class-gutenberg-modules.php +++ b/lib/experimental/modules/class-gutenberg-modules.php @@ -152,7 +152,7 @@ public static function print_module_preloads() { * import maps (https://github.com/guybedford/es-module-shims/issues/406). */ public static function print_import_map_polyfill() { - $test = 'HTMLScriptElement.supports?.("importmap")'; + $test = 'HTMLScriptElement.supports && HTMLScriptElement.supports("importmap")'; $src = gutenberg_url( '/build/modules/importmap-polyfill.min.js' ); echo (