From 7556b724158077e5c61d6cd467c0263e23bcb38d Mon Sep 17 00:00:00 2001 From: Thomas Bouffard <27200110+tbouffard@users.noreply.github.com> Date: Thu, 14 Sep 2023 15:02:24 +0200 Subject: [PATCH] fix: use configurable path for `errorImage` (#241) The default path of `errorImage` hard coded the context instead of using `Client.imageBasePath` as everywhere else. This seemed to be a migration mistake (the original code using the configurable path was commented). --- packages/core/src/util/Utils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/core/src/util/Utils.ts b/packages/core/src/util/Utils.ts index b965cdd4b..36bc62586 100644 --- a/packages/core/src/util/Utils.ts +++ b/packages/core/src/util/Utils.ts @@ -16,6 +16,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +import Client from '../Client'; + /** * A singleton class that provides cross-browser helper methods. * This is a global functionality. To access the functions in this @@ -48,7 +50,7 @@ export const utils = { /** * Defines the image used for error dialogs. */ - errorImage: '/error.gif', // Client.imageBasePath + '/error.gif', + errorImage: `${Client.imageBasePath}/error.gif`, }; export const isNullish = (v: string | object | null | undefined | number) =>