From 739411a07ebb5c42ab5d4156e60a031de95cda46 Mon Sep 17 00:00:00 2001 From: iliajie Date: Wed, 21 Jun 2023 18:21:42 +0300 Subject: [PATCH] Fix navigation type detection bug --- html-editor-lib.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html-editor-lib.pl b/html-editor-lib.pl index e41d1d503..0f556f5ee 100644 --- a/html-editor-lib.pl +++ b/html-editor-lib.pl @@ -237,7 +237,7 @@ my $iframe_styles = &read_file_contents("$root_directory/unauthenticated/css/_iframe/$iframe_styles_mode.min.css"), '"'); $iframe_styles =~ s/\n/ /g; my $navigation_type = $ENV{'HTTP_X_NAVIGATION_TYPE'}; -$navigation_type ||= 'navigate'; +$navigation_type ||= 'reload'; my $html_editor_init_script = < @@ -343,7 +343,7 @@ my $html_editor_init_script = let restore_message = false; try { restore_message = window.performance.getEntriesByType("navigation")[0].type !== 'navigate' && - navigation_type === 'navigate' + navigation_type !== 'navigate' } catch(e) { restore_message = false; }