Skip to content

Commit

Permalink
fix: insert link once
Browse files Browse the repository at this point in the history
closes #61
  • Loading branch information
sibiraj-s committed Feb 22, 2018
1 parent 8aa0ffd commit 28c002d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion docs/injectables/CommandExecutorService.html
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,6 @@ <h3 id="inputs">
if (restored) {
document.execCommand(&#x27;insertHTML&#x27;, false, newUrl);
}
document.execCommand(&#x27;insertHTML&#x27;, false, newUrl);
} else {
throw new Error(&#x27;Only new links can be inserted. You cannot edit URL&#x60;s&#x27;);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ export class CommandExecutorService {
if (restored) {
document.execCommand('insertHTML', false, newUrl);
}
document.execCommand('insertHTML', false, newUrl);
} else {
throw new Error('Only new links can be inserted. You cannot edit URL`s');
}
Expand Down

0 comments on commit 28c002d

Please sign in to comment.