Browse Source

Simplify setting API_KEY in src/index.tsx

Lance Stout 6 years ago
parent
commit
f77c78b211
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/index.tsx

+ 2 - 2
src/index.tsx

@@ -19,7 +19,7 @@ import './index.css';
 // Set this to the API key you received with your SimpleWebRTC account.
 // Set this to the API key you received with your SimpleWebRTC account.
 // You can visit accounts.simplewebrtc.com to find your API key.
 // You can visit accounts.simplewebrtc.com to find your API key.
 // ====================================================================
 // ====================================================================
-const API_KEY: string = 'YOUR_API_KEY';
+const API_KEY: string = '';
 
 
 
 
 const CONFIG_URL = `https://api.simplewebrtc.com/config/guest/${API_KEY}`;
 const CONFIG_URL = `https://api.simplewebrtc.com/config/guest/${API_KEY}`;
@@ -38,7 +38,7 @@ const store = createStore(
 (window as any).actions = Actions;
 (window as any).actions = Actions;
 (window as any).selectors = Selectors;
 (window as any).selectors = Selectors;
 
 
-if (API_KEY === 'YOUR_API_KEY') {
+if (!API_KEY) {
   ReactDOM.render(
   ReactDOM.render(
     <div>
     <div>
       <p>Edit src/index.tsx to set your API key.</p>
       <p>Edit src/index.tsx to set your API key.</p>