Closed TMUND closed 8 years ago
Looks good to me... @avandecreme does this look good to you?
It seems to work but I am surprised it does. Shouldn't it be
location.href += '?img=' + urlElt.value;
(Notice += instead of =)
I believe when you set location.href
it's just the same as when you click on a link...all URLs are considered relative to the current location. That's why =
works (though I imagine +=
would work too).
Alright, it is probably safer to use =
then.
I've just done some experimentation, and I think =
is better. If the URL already has a query string and you do = '?foo=1'
, it replaces the query string. With +=
it actually adds the new query string to the old one.
Yes, that is what I thought. Merged :) Thanks @TMUND
Excellent. I'll handle publishing it to the site.
Deployed to http://openseadragon.github.io/openseadragonizer/ !
Fixes #17