Use relative paths

// FREEBIE
This commit is contained in:
lilia 2017-03-07 16:54:46 -08:00 committed by Scott Nonnenberg
parent 95e809636a
commit 859d49b3f4
No known key found for this signature in database
GPG key ID: A4931C09644C654B
21 changed files with 106 additions and 106 deletions

View file

@ -20,7 +20,7 @@
});
// start a background worker for ecc
textsecure.startWorker('/js/libsignal-protocol-worker.js');
textsecure.startWorker('js/libsignal-protocol-worker.js');
Whisper.KeyChangeListener.init(textsecure.storage.protocol);
textsecure.storage.protocol.on('removePreKey', function() {
getAccountManager().refreshPreKeys();

View file

@ -13,7 +13,7 @@
}
this.inits.env = 1;
this.include_title = true;
this.img_sets.apple.path = '/images/emoji/apple/';
this.img_sets.apple.path = 'images/emoji/apple/';
this.replace_mode = 'img';
};

View file

@ -37095,7 +37095,7 @@ Internal.SessionLock.queueJobForNumber = function queueJobForNumber(number, runJ
window.textsecure.protobuf = {};
function loadProtoBufs(filename) {
return dcodeIO.ProtoBuf.loadProtoFile({root: '/protos', file: filename}, function(error, result) {
return dcodeIO.ProtoBuf.loadProtoFile({root: 'protos', file: filename}, function(error, result) {
var protos = result.build('textsecure');
for (var protoName in protos) {
textsecure.protobuf[protoName] = protos[protoName];

View file

@ -930,7 +930,7 @@
content: title ? title.trim()[0] : '#'
};
} else {
return { url: '/images/group_default.png', color: color };
return { url: 'images/group_default.png', color: color };
}
},

View file

@ -12,7 +12,7 @@
MESSAGE : 'message'
};
var sound = new Audio('/audio/NewMessage.mp3');
var sound = new Audio('audio/NewMessage.mp3');
Whisper.Notifications = new (Backbone.Collection.extend({
initialize: function() {

View file

@ -121,8 +121,8 @@
var type = file.type.split('/')[0];
switch (type) {
case 'audio': this.addThumb('/images/audio.svg'); break;
case 'video': this.addThumb('/images/video.svg'); break;
case 'audio': this.addThumb('images/audio.svg'); break;
case 'video': this.addThumb('images/video.svg'); break;
case 'image':
this.oUrl = URL.createObjectURL(file);
this.addThumb(this.oUrl);