feat: configuration to disable pwa

This commit is contained in:
Jannat Patel
2025-12-10 18:05:50 +05:30
parent 0877e32e1b
commit 80a217e646
11 changed files with 46 additions and 68 deletions

View File

@@ -168,7 +168,7 @@ const testCaseSection = ref<HTMLElement | null>(null)
const testCases = ref<TestCase[]>([])
const boilerplate = ref<string>('')
const { brand } = sessionStore()
const { livecodeURL } = useSettings()
const { settings } = useSettings()
const router = useRouter()
const fromLesson = ref(false)
const falconURL = ref<string>('https://falcon.frappe.io/')
@@ -291,8 +291,8 @@ watch(
)
const loadFalcon = () => {
if (livecodeURL.data) {
falconURL.value = livecodeURL.data
if (settings.data) {
falconURL.value = settings.data.livecode_url
}
return new Promise((resolve, reject) => {
const script = document.createElement('script')