Skip to content

Commit

Permalink
Merge pull request #12 from adrianariton/main
Browse files Browse the repository at this point in the history
small fix
  • Loading branch information
kerfun authored Dec 5, 2023
2 parents c7d501b + a7ee79b commit 160f471
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion book/chattutor_setup/chattutor.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
* file, false if ran on a server, either local or online
* Usually true for jupyter books
*/
const RUN_LOCALLY = true;
const RUN_LOCALLY = false;
const TEST_MODE = false;
const IS_STATIC = true;

Expand Down
6 changes: 6 additions & 0 deletions book/chattutor_setup/chattutor.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ function setupEmbedMode_URL() {
original_file = COURSE_URL + path
original_file = original_file.replaceAll(/[^A-Za-z0-9\-_]/g, '_')
console.log("Pulling from", original_file);

if (RUN_LOCALLY == false) {
original_file = window.location.href;
original_file = original_file.replaceAll(/[^A-Za-z0-9\-_]/g, '_')
console.log("Globally Pulling from", original_file);
}
}
function setupEmbedMode() {
// Setup minimize and expand buttons to toggle 'minimized' class on mainArea
Expand Down

0 comments on commit 160f471

Please sign in to comment.