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
parent
efb5b4bdf9
commit
7556b72415
|
@ -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) =>
|
||||
|
|
Loading…
Reference in New Issue