Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Basthon
Basthon Notebook
Commits
0ffa70b7
Commit
0ffa70b7
authored
Nov 02, 2020
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
notebook/basthon/gui.js
View file @
0ffa70b7
...
...
@@ -85,13 +85,13 @@ window.basthonGUI = (function () {
that
.
loadFromQS
=
async
function
()
{
const
url
=
new
URL
(
window
.
location
.
href
);
const
ipynb_key
=
'
ipynb
'
;
const
f
ile
_key
=
'
f
ile
'
;
const
f
rom
_key
=
'
f
rom
'
;
var
ipynb
;
if
(
url
.
searchParams
.
has
(
ipynb_key
)
)
{
ipynb
=
url
.
searchParams
.
get
(
ipynb_key
);
ipynb
=
decodeURIComponent
(
ipynb
);
}
else
if
(
url
.
searchParams
.
has
(
f
ile
_key
)
)
{
var
fileURL
=
url
.
searchParams
.
get
(
f
ile
_key
);
}
else
if
(
url
.
searchParams
.
has
(
f
rom
_key
)
)
{
var
fileURL
=
url
.
searchParams
.
get
(
f
rom
_key
);
fileURL
=
decodeURIComponent
(
fileURL
);
try
{
ipynb
=
await
Basthon
.
xhr
({
url
:
fileURL
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment