Browse Source

Use fragment identifier for standalone viewer configuration.

pull/260/head
Matthew Petroff 8 years ago
parent
commit
c90dcb2283
1 changed files with 8 additions and 2 deletions
  1. +8
    -2
      src/standalone/standalone.js

+ 8
- 2
src/standalone/standalone.js View File

@@ -6,8 +6,14 @@ function anError(error) {
}

function parseURLParameters() {
var URL = decodeURI(window.location.href).split('?');
URL.shift();
var URL;
if (window.location.hash.length > 0) {
// Prefered method since parameters aren't sent to server
URL = [window.location.hash.slice(1)];
} else {
URL = decodeURI(window.location.href).split('?');
URL.shift();
}
if (URL.length < 1) {
// Display error if no configuration parameters are specified
anError('No configuration options were specified.');


Loading…
Cancel
Save