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).
development
Thomas Bouffard 2023-09-14 15:02:24 +02:00 committed by GitHub
parent efb5b4bdf9
commit 7556b72415
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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) =>