Skip to content

Commit

Permalink
Fix: remove alert on empty path (regression). Set debugging level to …
Browse files Browse the repository at this point in the history
…warn for prod. (#753)
  • Loading branch information
pablo-mayrgundter committed Jul 4, 2023
1 parent b1132c0 commit 7c88e66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Share.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ export function getModelPath(installPrefix, pathPrefix, urlParams) {
let m = null
let filepath = urlParams['*']
if (filepath === '') {
alert(`Must provide a filepath`)
return null
}
let parts
Expand Down
4 changes: 2 additions & 2 deletions src/utils/debug.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* eslint-disable no-unused-vars */
const OFF = 4
const ERROR = 3
const WARN = 2
const WARN = 2 // Use this as default for prod. Should never see these messages.
const INFO = 1
const DEBUG = 0
/* eslint-enable no-unused-vars */
let DEBUG_LEVEL = DEBUG
let DEBUG_LEVEL = WARN


/**
Expand Down

0 comments on commit 7c88e66

Please sign in to comment.