1
0
Fork 0
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:
Luke Pulverenti 2013-11-05 14:43:21 -05:00
parent b3403f8fd0
commit 0c9ea3d353

View file

@ -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 () {