Skip to content

Commit

Permalink
Default display save/share button
Browse files Browse the repository at this point in the history
  • Loading branch information
sourishkrout committed Jul 31, 2023
1 parent c48e97c commit 506cc6f
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/utils/configuration.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { readFileSync } from 'node:fs'
import path from 'node:path'
import os from 'node:os'

Expand Down Expand Up @@ -27,19 +26,6 @@ const APP_LOOPBACK_MAPPING = new Map<string, string>([
['app.', ':4001'],
])

// todo(sebastian): temp hack, remove for stable release
let APP_PANELS_PRESENT = false
try {
const packageJson = readFileSync(path.join(__dirname, '../package.json'), { encoding: 'utf8' })
APP_PANELS_PRESENT = packageJson.indexOf('viewsContainers') > -1
} catch (err) {
if (err instanceof Error) {
console.error(err.message)
} else {
console.error(err)
}
}

type NotebookTerminalValue = keyof typeof configurationSchema.notebookTerminal

const configurationSchema = {
Expand Down Expand Up @@ -319,7 +305,7 @@ const getRunmeBaseDomain = (): string => {
}

const isRunmeAppButtonsEnabled = (): boolean => {
return APP_PANELS_PRESENT && getCloudConfigurationValue('enableShare', true)
return getCloudConfigurationValue('enableShare', true)
}

export {
Expand Down

0 comments on commit 506cc6f

Please sign in to comment.