This commit is contained in:
syuilo
2018-04-15 05:22:16 +09:00
parent 5a49d14246
commit f78ae399f2
8 changed files with 24 additions and 20 deletions

View File

@@ -55,12 +55,11 @@ export default class Replacer {
public replacement(ctx, match, a, b, c) {
const client = 'misskey/src/client/app/';
const name = ctx ? ctx.src.substr(ctx.src.indexOf(client) + client.length) : null;
let name = null;
let key = a || b || c;
if (key[0] == '@') {
//if (name.startsWith('app/desktop/views/')) prefix = 'desktop.views.';
//if (name.startsWith('app/mobile/views/')) prefix = 'mobile.views.';
name = ctx.src.substr(ctx.src.indexOf(client) + client.length);
key = key.substr(1);
}