soiz1's picture
Upload folder using huggingface_hub
4d70170 verified
raw
history blame contribute delete
649 Bytes
import { SharedData, target } from '@vue-devtools/shared-utils'
export interface PageConfig {
openInEditorHost?: string
defaultSelectedAppId?: string
customVue2ScanSelector?: string
}
let config: PageConfig = {}
export function getPageConfig(): PageConfig {
return config
}
export function initOnPageConfig() {
// User project devtools config
if (Object.hasOwnProperty.call(target, 'VUE_DEVTOOLS_CONFIG')) {
config = SharedData.pageConfig = target.VUE_DEVTOOLS_CONFIG
// Open in editor
if (Object.hasOwnProperty.call(config, 'openInEditorHost')) {
SharedData.openInEditorHost = config.openInEditorHost
}
}
}