aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/Main.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/Main.tsx')
-rw-r--r--src/client/views/Main.tsx13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/client/views/Main.tsx b/src/client/views/Main.tsx
index aa002cee9..55fa138c8 100644
--- a/src/client/views/Main.tsx
+++ b/src/client/views/Main.tsx
@@ -7,18 +7,9 @@ import { Cast } from "../../new_fields/Types";
import { Doc, DocListCastAsync } from "../../new_fields/Doc";
import { List } from "../../new_fields/List";
import { DocServer } from "../DocServer";
+const ArrayExtensions = require("../../extensions/ArrayExtensions");
-String.prototype.removeTrailingNewlines = function () {
- let sliced = this;
- while (sliced.endsWith("\n")) {
- sliced = sliced.substring(0, this.length - 1);
- }
- return sliced as string;
-};
-
-String.prototype.hasNewline = function () {
- return this.endsWith("\n");
-};
+ArrayExtensions.AssignArrayExtensions();
let swapDocs = async () => {
let oldDoc = await Cast(CurrentUserUtils.UserDocument.linkManagerDoc, Doc);