mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
cache busting for js file based on server version.
This commit is contained in:
16
UI/System/StatusModel.js
Normal file
16
UI/System/StatusModel.js
Normal file
@@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
define(
|
||||
[
|
||||
'backbone',
|
||||
'constants'
|
||||
], function (Backbone) {
|
||||
|
||||
var model = Backbone.Model.extend({
|
||||
url: Constants.ApiRoot + '/system/status'
|
||||
});
|
||||
|
||||
|
||||
var instance = new model();
|
||||
instance.fetch();
|
||||
return instance;
|
||||
});
|
Reference in New Issue
Block a user