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
-2
View File
@@ -28,8 +28,6 @@
<script crossorigin src="https://unpkg.com/react@16/umd/react.production.min.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.production.min.js"></script>
<script crossorigin src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<!-- message formatting -->
<script src="drafty.js"></script>
<!-- core tinode library -->
<script src="tinode.js"></script>
<!-- the application -->
+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) {