tazwarrrr commited on
Commit
05d7db5
·
1 Parent(s): 56b60d4

fixning index

Browse files
Files changed (1) hide show
  1. frontend/index.html +3 -1
frontend/index.html CHANGED
@@ -1192,7 +1192,9 @@ __global__ void kernel(float* A, float* B, int N) {
1192
  </div>
1193
  </div>
1194
  <script>
1195
- const API = 'http://localhost:8000';
 
 
1196
  const S = { code: '', kn: 'custom', run: false, t0: null, iv: null, rep: null, tl: [], kernels: {} };
1197
  const AG = {
1198
  analyzer: { n: 'ANALYZER', i: '🔍' },
 
1192
  </div>
1193
  </div>
1194
  <script>
1195
+ const API = window.location.protocol === 'file:'
1196
+ ? 'http://localhost:8000'
1197
+ : window.location.origin;
1198
  const S = { code: '', kn: 'custom', run: false, t0: null, iv: null, rep: null, tl: [], kernels: {} };
1199
  const AG = {
1200
  analyzer: { n: 'ANALYZER', i: '🔍' },