Fix bug with warning (#550)

* Fix bug with warning

* update from master
This commit is contained in:
Murod Khaydarov 2018-12-06 22:14:56 +03:00 committed by GitHub
parent 79399b6eb4
commit 020961a7e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 9 deletions

12
dist/codex-editor.js vendored

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
{
"name": "codex.editor",
"version": "2.7.4",
"version": "2.7.5",
"description": "Codex Editor. Native JS, based on API and Open Source",
"main": "dist/codex-editor.js",
"types": "./types/index.d.ts",

View file

@ -146,8 +146,8 @@ export default class SelectionUtils {
sel = window.getSelection();
if (!sel.rangeCount) {
_.log('Method SelectionUtils.rangeCount() is not supported', 'warn');
if (!isNaN(sel.rangeCount)) {
_.log('Method SelectionUtils.rangeCount is not supported', 'warn');
return rect;
}