/usr/lib/python3/dist-packages/sagenb_export/nbextension/www/start-sagenb.js is in python3-sagenb-export 3.2-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 'use strict';
var startSageNB = function() {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (xhttp.readyState == 4 && xhttp.status == 200) {
var url = xhttp.responseText;
window.location.replace(url);
} else {
document.querySelector('.error').innerText = xhttp.responseText;
}
};
xhttp.open('GET', '/sagenb/start', false);
xhttp.send();
};
|