mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
toolbar now saves its state for radio buttons.
This commit is contained in:
11
UI/Instrumentation/StringFormat.js
Normal file
11
UI/Instrumentation/StringFormat.js
Normal file
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
String.prototype.format = function () {
|
||||
var args = arguments;
|
||||
return this.replace(/{(\d+)}/g, function (match, number) {
|
||||
if (typeof args[number] !== 'undefined') {
|
||||
return args[number];
|
||||
} else {
|
||||
return match;
|
||||
}
|
||||
});
|
||||
};
|
Reference in New Issue
Block a user