mirror of
https://github.com/codex-team/editor.js
synced 2024-06-18 13:45:20 +02:00
Fix bug with warning (#550)
* Fix bug with warning * update from master
This commit is contained in:
parent
79399b6eb4
commit
020961a7e8
12
dist/codex-editor.js
vendored
12
dist/codex-editor.js
vendored
File diff suppressed because one or more lines are too long
|
@ -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",
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue