Skip to content
Permalink
Browse files
fix: added fallback instance ref to location
  • Loading branch information
bolotskydev committed Mar 25, 2021
1 parent aaae362 commit b809bd3643d7441e7b5808b22a3a122785139f42
Showing 1 changed file with 2 additions and 1 deletion.
@@ -2,7 +2,8 @@
const token = process.env.REACT_APP_DRONE_TOKEN || '';

// default server address.
const instance = process.env.REACT_APP_DRONE_SERVER || '';
const instance = process.env.REACT_APP_DRONE_SERVER
|| `${window.location.protocol}//${window.location.host}`;

const LOGS_LIMIT = 250;

0 comments on commit b809bd3

Please sign in to comment.