From e9e8d9881f4505d48e35887f900a3686eec0c8c1 Mon Sep 17 00:00:00 2001 From: or-else Date: Fri, 10 Aug 2018 15:16:40 +0300 Subject: [PATCH] make the webapp work with browserify-processed tinode.js (symlinked tinode.dev.js) --- index.html | 2 -- index.js | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index cdd098f4..bd3b8bd1 100644 --- a/index.html +++ b/index.html @@ -28,8 +28,6 @@ - - diff --git a/index.js b/index.js index 0695c016..933c7a2e 100644 --- a/index.js +++ b/index.js @@ -54,6 +54,9 @@ var MAX_IMAGE_SIZE = 768; var SUPPORTED_IMAGE_FORMATS = ['image/jpeg', 'image/gif', 'image/png', 'image/svg', 'image/svg+xml']; var MIME_EXTENSIONS = ['jpg', 'gif', 'png', 'svg', 'svg']; +// Tinode is defined in 'tinode.js'. +var Drafty = Tinode.Drafty; + // Helper functions for storing values in localStorage. // By default localStorage can store only strings, not objects or other types. Storage.prototype.setObject = function(key, value) {