mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-16 05:38: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?
|
// Do we need to update theme?
|
||||||
const shouldUpdateTheme =
|
const shouldUpdateTheme =
|
||||||
!this.termOptions.theme ||
|
!this.termOptions.theme ||
|
||||||
Object.keys(nextTermOptions.theme).some(option => {
|
Object.keys(nextTermOptions.theme).some(
|
||||||
nextTermOptions.theme[option] !== this.termOptions.theme[option];
|
option => nextTermOptions.theme[option] !== this.termOptions.theme[option]
|
||||||
});
|
);
|
||||||
if (shouldUpdateTheme) {
|
if (shouldUpdateTheme) {
|
||||||
this.term.setOption('theme', nextTermOptions.theme);
|
this.term.setOption('theme', nextTermOptions.theme);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue