Skip to content

Commit

Permalink
fix: viewer overwrite editor if both loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
kyuwoo.choi committed Dec 28, 2017
1 parent 4aa391f commit 65fbb69
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/js/extensions/editorProxy.js
Expand Up @@ -8,8 +8,10 @@ let Editor;
try {
Editor = require('../editor');
} catch (e) {}
try {
Editor = require('../viewer');
} catch (e) {}
if (!Editor) {
try {
Editor = require('../viewer');
} catch (e) {}
}

export default Editor;

0 comments on commit 65fbb69

Please sign in to comment.