Skip to content

Commit

Permalink
Added condition for SSR support
Browse files Browse the repository at this point in the history
  • Loading branch information
xdan committed Jun 8, 2018
1 parent 0faed25 commit 4baf3a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ export const MODE_SPLIT = 3;
/**
* @property {string} TEXT_PLAIN='text/plain' For IE11 it will be 'text'. Need for dataTransfer.setData
*/
export const URL_LIST = navigator.userAgent.indexOf("MSIE") != -1 || /rv:11.0/i.test(navigator.userAgent) ? 'url' : 'text/uri-list';
export const TEXT_PLAIN = navigator.userAgent.indexOf("MSIE") != -1 || /rv:11.0/i.test(navigator.userAgent) ? 'text' : 'text/plain';
export const TEXT_HTML = navigator.userAgent.indexOf("MSIE") != -1 || /rv:11.0/i.test(navigator.userAgent) ? 'text' : 'text/html';
export const URL_LIST = (typeof navigator !== 'undefined' && (navigator.userAgent.indexOf("MSIE") != -1 || /rv:11.0/i.test(navigator.userAgent))) ? 'url' : 'text/uri-list';
export const TEXT_PLAIN = (typeof navigator !== 'undefined' && (navigator.userAgent.indexOf("MSIE") != -1 || /rv:11.0/i.test(navigator.userAgent))) ? 'text' : 'text/plain';
export const TEXT_HTML = (typeof navigator !== 'undefined' && (navigator.userAgent.indexOf("MSIE") != -1 || /rv:11.0/i.test(navigator.userAgent))) ? 'text' : 'text/html';


export const MARKER_CLASS = 'jodit_selection_marker';
Expand Down

0 comments on commit 4baf3a9

Please sign in to comment.