mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixes #578 - Restarting server within plug-in config creates error
This commit is contained in:
parent
b3403f8fd0
commit
0c9ea3d353
1 changed files with 9 additions and 1 deletions
|
@ -278,7 +278,15 @@ var Dashboard = {
|
|||
|
||||
reloadPage: function () {
|
||||
|
||||
window.location.href = window.location.href;
|
||||
var currentUrl = window.location.toString().toLowerCase();
|
||||
|
||||
// If they're on a plugin config page just go back to the dashboard
|
||||
// The plugin may not have been loaded yet, or could have been uninstalled
|
||||
if (currentUrl.indexOf('configurationpage') != -1) {
|
||||
window.location.href = "dashboard.html";
|
||||
} else {
|
||||
window.location.href = window.location.href;
|
||||
}
|
||||
},
|
||||
|
||||
hideDashboardVersionWarning: function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue