An easy-to-use platform for EEG experimentation in the classroom
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update pyodide.js

+4 -6
+4 -6
app/utils/pyodide/pyodide.js
··· 1 1 /** 2 2 * The main bootstrap script for loading pyodide. 3 3 */ 4 + const port = process.env.PORT || 1212; 5 + 6 + export const languagePluginLoader = new Promise((resolve, reject) => { 4 7 5 - var languagePluginLoader = new Promise((resolve, reject) => { 6 - // This is filled in by the Makefile to be either a local file or the 7 - // deployed location. TODO: This should be done in a less hacky 8 - // way. 9 - var baseURL = 'http://localhost:1212/src/'; 8 + var baseURL = 'http://localhost:' + port + '/src/'; 10 9 // var baseURL = self.languagePluginUrl || 'https://iodide.io/pyodide-demo/'; 11 10 baseURL = baseURL.substr(0, baseURL.lastIndexOf('/')) + '/'; 12 11 ··· 359 358 }, () => {}); 360 359 }, () => {}); 361 360 }); 362 - // languagePluginLoader