arielsalminen / Remote-Preview

Remote Preview allows you to preview any URL on large number of mobile devices simultaneously.
http://viljamis.com/blog/2012/remote-preview/
1.25k stars 120 forks source link

Support of dynamic URL - Chrome extension #12

Open ghost opened 10 years ago

ghost commented 10 years ago

The actual version cuts parameters since the second. URL like the following: http://192.168.144.40:8080/pages/details/events.html?tid=53&search=&prevSearch=&startDate=08.01.2011&prevStartDate=13.01.2014&filter=&query=&content=%5B%5D&mandate=%5B%5D&page=1&rid=&code=&numero=&id_event=205

Gets cut to: http://192.168.144.40:8080/pages/details/events.html?tid=53

To support all sort of URL we could change, line 56 of background.js, like this: https://github.com/viljamis/Remote-Preview/blob/master/Chrome%20extension/source/background.js

var parameters = 'url=' + url;

To

var parameters = 'url=' + encodeURIComponent(url);