Commit 0ffa70b7 authored by Romain Casati's avatar Romain Casati
Browse files

Renaming 'file' URL param to 'from' (less ambigous).

parent 9cc9feba
Pipeline #358079 passed with stages
in 4 minutes and 15 seconds
......@@ -85,13 +85,13 @@ window.basthonGUI = (function () {
that.loadFromQS = async function () {
const url = new URL(window.location.href);
const ipynb_key = 'ipynb';
const file_key = 'file';
const from_key = 'from';
var ipynb;
if( url.searchParams.has(ipynb_key) ) {
ipynb = url.searchParams.get(ipynb_key);
ipynb = decodeURIComponent(ipynb);
} else if( url.searchParams.has(file_key) ) {
var fileURL = url.searchParams.get(file_key);
} else if( url.searchParams.has(from_key) ) {
var fileURL = url.searchParams.get(from_key);
fileURL = decodeURIComponent(fileURL);
try {
ipynb = await Basthon.xhr({url: fileURL,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment