Skip to content

Instantly share code, notes, and snippets.

<script type="text/javascript">

    var sessionData = {"logged_in":true,"eduPrincipalName":"[email protected]","organization":null};
    var domains = ["https:\/\/les-test1.unibok.no:7021","https:\/\/les-test1.unibok.no:7011","https:\/\/les-test2.unibok.no:7021","https:\/\/les-test2.unibok.no:7011","https:\/\/local.unibok.no:7011","file:\/\/"];

    sessionData = JSON.stringify(sessionData);
    var referrer = document.referrer;
    if(!referrer){
 referrer="file://";