0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

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