Removed unnecessary error parameter in bridge

no issue

- The error parameter is passed arround by never used. Removed it to have less type check errors
This commit is contained in:
Naz 2021-09-23 18:39:43 +02:00
parent 035ad01f24
commit dbb78820b3

View File

@ -40,7 +40,7 @@ class Bridge {
return themeEngine.getActive();
}
activateTheme(loadedTheme, checkedTheme, error) {
activateTheme(loadedTheme, checkedTheme) {
let settings = {
locale: settingsCache.get('lang')
};
@ -53,7 +53,7 @@ class Bridge {
previousGhostAPI = this.getActiveTheme().engine('ghost-api');
}
themeEngine.setActive(settings, loadedTheme, checkedTheme, error);
themeEngine.setActive(settings, loadedTheme, checkedTheme);
const currentGhostAPI = this.getActiveTheme().engine('ghost-api');
if (previousGhostAPI !== undefined && (previousGhostAPI !== currentGhostAPI)) {