fixning index
Browse files- 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 = '
|
|
|
|
|
|
|
| 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: '🔍' },
|