Commit 9b800bc6 authored by Douwe Maan's avatar Douwe Maan

Remove unneeded code

parent 359c4176
...@@ -249,8 +249,8 @@ ...@@ -249,8 +249,8 @@
class CopyAsGFM { class CopyAsGFM {
constructor() { constructor() {
$(document).on('copy', '.md, .wiki', this.handleCopy.bind(this)); $(document).on('copy', '.md, .wiki', this.handleCopy);
$(document).on('paste', '.js-gfm-input', this.handlePaste.bind(this)); $(document).on('paste', '.js-gfm-input', this.handlePaste);
} }
handleCopy(e) { handleCopy(e) {
......
...@@ -161,8 +161,6 @@ ...@@ -161,8 +161,6 @@
}; };
w.gl.utils.getSelectedFragment = () => { w.gl.utils.getSelectedFragment = () => {
if (!window.getSelection) return null;
const selection = window.getSelection(); const selection = window.getSelection();
if (!selection.rangeCount || selection.rangeCount === 0) return null; if (!selection.rangeCount || selection.rangeCount === 0) return null;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment