Commit 97d330db authored by Thorsten Wißmann's avatar Thorsten Wißmann 🐧
Browse files

Disable download for besucher user

parent 3650dfef
......@@ -47,6 +47,7 @@
// window.open("data:text/plain;charset=UTF-8;base64,"+base64,"UTF-8 Text");
app.ports.showOverlayMessage.send(params);
});
if (!window.location.href.startsWith("file:///home/besucher/")) {
app.ports.downloadPlainText.subscribe(
function(params) {
/* from http://stackoverflow.com/a/20194533/4400896 */
......@@ -58,6 +59,7 @@
a.click();
document.body.removeChild(a);
});
}
app.ports.svgScreenshot.subscribe(
function(name) {
var svg = document.getElementsByClassName('railPuzzle')[0];
......
Supports Markdown
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