Skip to content

Commit

Permalink
prettier fix
Browse files Browse the repository at this point in the history
  • Loading branch information
saranyaloganathan23 committed Oct 9, 2023
1 parent b1b370b commit 54550af
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ const extension: JupyterFrontEndPlugin<void> = {
onPreviewEnabledChanged();
});

/**
/**
* Handler for when the Jupyter Lab theme changes.
*/
const onThemeChanged = () => {
const onThemeChanged = () => {
if (!panelDpms || !panelGcs) return;
const isLightTheme = themeManager.theme
? themeManager.isLight(themeManager.theme)
Expand Down Expand Up @@ -181,8 +181,6 @@ const extension: JupyterFrontEndPlugin<void> = {
new NotebookButtonExtension(app as JupyterLab, launcher, themeManager)
);



const loadDpmsWidget = (value: string) => {
// If DPMS is not enabled, no-op.
if (!panelDpms) return;
Expand Down Expand Up @@ -275,7 +273,8 @@ const extension: JupyterFrontEndPlugin<void> = {
(newValue.title.label === 'Launcher' ||
newValue.title.label === 'Config Setup' ||
newValue.title.label === 'Clusters' ||
newValue.title.label === 'Serverless' || newValue.title.label === 'Settings') &&
newValue.title.label === 'Serverless' ||
newValue.title.label === 'Settings') &&
lastClusterName !== ''
) {
localStorage.setItem('oldNotebookValue', lastClusterName || '');
Expand Down

0 comments on commit 54550af

Please sign in to comment.