diff options
Diffstat (limited to 'webapp/utils/utils.jsx')
-rw-r--r-- | webapp/utils/utils.jsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/webapp/utils/utils.jsx b/webapp/utils/utils.jsx index bb17c2fdc..907c01229 100644 --- a/webapp/utils/utils.jsx +++ b/webapp/utils/utils.jsx @@ -139,7 +139,7 @@ export function notifyMe(title, body, channel, teamId) { Notification.requestPermission((permission) => { if (permission === 'granted') { try { - var notification = new Notification(title, {body: body, tag: body, icon: icon50}); + var notification = new Notification(title, {body, tag: body, icon: icon50}); notification.onclick = () => { window.focus(); if (channel) { @@ -413,7 +413,7 @@ export function insertHtmlEntities(text) { export function searchForTerm(term) { AppDispatcher.handleServerAction({ type: ActionTypes.RECEIVED_SEARCH_TERM, - term: term, + term, do_search: true }); } @@ -494,7 +494,7 @@ export function splitFileLocation(fileLocation) { var filePath = fileSplit.join('.'); var filename = filePath.split('/')[filePath.split('/').length - 1]; - return {ext: ext, name: filename, path: filePath}; + return {ext, name: filename, path: filePath}; } export function getPreviewImagePath(filename) { @@ -1079,7 +1079,7 @@ export function generateId() { if (c === 'x') { v = r; } else { - v = r & 0x3 | 0x8; + v = (r & 0x3) | 0x8; } return v.toString(16); @@ -1297,7 +1297,7 @@ export function fillArray(value, length) { // Checks if a data transfer contains files not text, folders, etc.. // Slightly modified from http://stackoverflow.com/questions/6848043/how-do-i-detect-a-file-is-being-dragged-rather-than-a-draggable-element-on-my-pa export function isFileTransfer(files) { - if (isBrowserIE()) { + if (isBrowserIE() || isBrowserEdge()) { return files.types != null && files.types.contains('Files'); } |