Skip to content

Commit

Permalink
fix: safeguard empty baseURL (#165)
Browse files Browse the repository at this point in the history
* Resolves Invalid URL when baseURL is empty
* resolves #148 

Co-authored-by: Sumesh Nair <sumesh.nair@sap.com>
  • Loading branch information
nair-sumesh and sn-sap authored Mar 5, 2022
1 parent 7b5ecc2 commit 620f3b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/wdi5-bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export async function addWdi5Commands() {
const oRoute = oOptions.oRoute

if (sHash && sHash.length > 0) {
const url = (browser.config as wdi5Config).wdi5["url"]
const url = (browser.config as wdi5Config).wdi5["url"] || await browser.getUrl()

// navigate via hash if defined
if (url && url.length > 0 && url !== "#") {
Expand Down

0 comments on commit 620f3b5

Please # to comment.