mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-30 19:56:54 +00:00
19 lines
447 B
JavaScript
19 lines
447 B
JavaScript
|
'use strict';
|
||
|
define({
|
||
|
register: function (Handlebars) {
|
||
|
Handlebars.registerHelper("debug", function (optionalValue) {
|
||
|
|
||
|
console.group('Handlebar context');
|
||
|
|
||
|
console.log(this);
|
||
|
if (optionalValue) {
|
||
|
|
||
|
console.group('optional values');
|
||
|
console.log('optinal values');
|
||
|
console.groupEnd();
|
||
|
}
|
||
|
console.groupEnd();
|
||
|
});
|
||
|
}
|
||
|
});
|