coroiu / Server-qPaste

Free open source pastebin
http://qpaste.it
Other
1 stars 0 forks source link

Mobile uploading broken #12

Closed coroiu closed 10 years ago

coroiu commented 10 years ago

This issue originates in the way flash support is checked. All desktop browser support the ActiveXObject class, while mobile browsers, apparently, do not.

Issue can be found at https://github.com/andenq/Server-qPaste/blob/master/views/home.html#L240

Solution could be to try/catch the line, or to simply add a condition checking to see if the ActiveXObject is actually defined.