mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Fix Term theme hot reloading (#2771)
This commit is contained in:
parent
f6a1ba114a
commit
984922d046
1 changed files with 3 additions and 3 deletions
|
|
@ -240,9 +240,9 @@ export default class Term extends React.PureComponent {
|
|||
// Do we need to update theme?
|
||||
const shouldUpdateTheme =
|
||||
!this.termOptions.theme ||
|
||||
Object.keys(nextTermOptions.theme).some(option => {
|
||||
nextTermOptions.theme[option] !== this.termOptions.theme[option];
|
||||
});
|
||||
Object.keys(nextTermOptions.theme).some(
|
||||
option => nextTermOptions.theme[option] !== this.termOptions.theme[option]
|
||||
);
|
||||
if (shouldUpdateTheme) {
|
||||
this.term.setOption('theme', nextTermOptions.theme);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue