make the webapp work with browserify-processed tinode.js (symlinked tinode.dev.js)

This commit is contained in:
or-else
2018-08-10 15:16:40 +03:00
parent 3975401205
commit e9e8d9881f
2 changed files with 3 additions and 2 deletions
+3
View File
@@ -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) {