mirror of
https://github.com/Readarr/Readarr
synced 2026-01-11 18:14:00 +01:00
26 lines
606 B
JavaScript
26 lines
606 B
JavaScript
'use strict';
|
|
|
|
define(
|
|
[
|
|
'handlebars',
|
|
'System/StatusModel'
|
|
], function (Handlebars, StatusModel) {
|
|
|
|
Handlebars.registerHelper('if_windows', function(options) {
|
|
if (StatusModel.get('isWindows'))
|
|
{
|
|
return options.fn(this);
|
|
}
|
|
|
|
return options.inverse(this);
|
|
});
|
|
|
|
Handlebars.registerHelper('if_linux', function(options) {
|
|
if (StatusModel.get('isLinux'))
|
|
{
|
|
return options.fn(this);
|
|
}
|
|
|
|
return options.inverse(this);
|
|
});
|
|
});
|