Remove TextPatcher and begin to include ChainPad directly using requirejs instead of sniffing off the window

This commit is contained in:
Caleb James DeLisle
2017-11-09 17:07:04 +01:00
parent 840cd91bcb
commit 7b62a8042e
13 changed files with 44 additions and 32 deletions
+1 -2
View File
@@ -3,8 +3,7 @@ define([
'/bower_components/chainpad-netflux/chainpad-netflux.js',
'json.sortify',
'/bower_components/chainpad/chainpad.dist.js'
], function (Realtime, Sortify) {
var ChainPad = window.ChainPad;
], function (Realtime, Sortify, ChainPad) {
var api = {};
// "Proxy" is undefined in Safari : we need to use an normal object and check if there are local
// changes regurlarly.