diff options
author | Martin Hradil <mhradil@redhat.com> | 2016-05-06 08:25:13 +0000 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2016-05-12 17:17:23 +0200 |
commit | 522a9eb99151e0826fca73fa2c2e6ab9bd0244f6 (patch) | |
tree | 540686c35d704d6988879df9742653aa3b8d20fd | |
parent | 78022d150e919ef2f5e73fd2d2a1a3a570dd9512 (diff) |
spice-html5: spice_auto.html - actually use ?path when given
Right now, `spice_auto.html` reads the path from query string .. and
never actually does anything with it. This should make
`spice_auth.html` respect a path parametr when given.
-rw-r--r-- | spice_auto.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spice_auto.html b/spice_auto.html index 5714804..9aae118 100644 --- a/spice_auto.html +++ b/spice_auto.html @@ -128,6 +128,10 @@ uri = scheme + host + ":" + port; + if (path) { + uri += path[0] == '/' ? path : ('/' + path); + } + try { sc = new SpiceMainConn({uri: uri, screen_id: "spice-screen", dump_id: "debug-div", |