Only allow multipart mixed/replace message within the Evergreen staff
client for now. Eventually, multi-part messages will be wholly
deprecated.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
} else {
- /* Only Firefox supports multipart calls, but Safari / Chrome include
- "Mozilla" in their user agent strings... sigh */
- if(!navigator.userAgent.match(/mozilla/i) || navigator.userAgent.match(/webkit/i) || navigator.userAgent.match(/msie/i)) {
+ /**
+ * multi-part messages are deprecated. Eventually this will go away.
+ * For now, continue allowing the Evergreen staff client to use
+ * multi-part messages. */
+ if (!navigator.userAgent.match(/open_ils_staff_client/)) {
/* standard asynchronous call */
xreq.onreadystatechange = function() {
if(xreq.readyState == 4)