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:
parent
035ad01f24
commit
dbb78820b3
1 changed files with 2 additions and 2 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue