diff --git a/tests/app/load.js b/tests/app/load.js index ff1c712..69a0573 100755 --- a/tests/app/load.js +++ b/tests/app/load.js @@ -42,7 +42,9 @@ export class Application { this.request.setRootPath( HttpUri.parseUrl( - document.getElementsByTagName('base')[0].href + typeof document.getElementsByTagName('base')[0] !== 'undefined' + ? document.getElementsByTagName('base')[0].href + : '' ).path );