mirror of
https://github.com/thelounge/thelounge
synced 2024-11-27 14:30:57 +00:00
13 lines
194 B
JavaScript
13 lines
194 B
JavaScript
"use strict";
|
|
|
|
Handlebars.registerHelper(
|
|
"equal", function(a, b, opt) {
|
|
a = a.toString();
|
|
b = b.toString();
|
|
if (a === b) {
|
|
return opt.fn(this);
|
|
}
|
|
|
|
return opt.inverse(this);
|
|
}
|
|
);
|