Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
turndown: Enable turndown in production.
N-Shar-ma7895b05284e4
diff --git a/web/src/copy_and_paste.js b/web/src/copy_and_paste.jsindex 30235ec4c64..70eae07c5a4 100644--- a/web/src/copy_and_paste.js+++ b/web/src/copy_and_paste.js@@ -5,7 +5,6 @@ import TurndownService from "turndown";import * as compose_ui from "./compose_ui";import * as message_lists from "./message_lists";-import {page_params} from "./page_params";import * as rows from "./rows";function find_boundary_tr($initial_tr, iterate_row) {@@ -605,8 +604,7 @@ export function paste_handler(event) {if (!compose_ui.cursor_inside_code_block($textarea) &&paste_html &&- !compose_ui.shift_pressed &&- page_params.development_environment+ !compose_ui.shift_pressed) {event.preventDefault();event.stopPropagation();diff --git a/web/tests/copy_and_paste.test.js b/web/tests/copy_and_paste.test.jsindex bd74cd293e7..b85ecdb33c9 100644--- a/web/tests/copy_and_paste.test.js+++ b/web/tests/copy_and_paste.test.js@@ -4,7 +4,6 @@ const {strict: assert} = require("assert");const {zrequire} = require("./lib/namespace");const {run_test} = require("./lib/test");-const {page_params} = require("./lib/zpage_params");const copy_and_paste = zrequire("copy_and_paste");@@ -23,8 +22,6 @@ run_test("maybe_transform_html", () => {});run_test("paste_handler_converter", () => {- page_params.development_environment = true;-/*Pasting from another Zulip message*/