mirror of
https://github.com/haexhub/haex-hub.git
synced 2025-12-17 14:30:52 +01:00
refactored extension_protocol_handler. removed all injections in index.html
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import { invoke } from '@tauri-apps/api/core'
|
||||
import { readFile } from '@tauri-apps/plugin-fs'
|
||||
import { EXTENSION_PROTOCOL_PREFIX } from '~/config/constants'
|
||||
|
||||
import type {
|
||||
IHaexHubExtension,
|
||||
@ -86,7 +87,7 @@ export const useExtensionsStore = defineStore('extensionsStore', () => {
|
||||
currentExtension.value.version,
|
||||
)
|
||||
|
||||
return `haex-extension://localhost/${encodedInfo}/index.html`
|
||||
return `${EXTENSION_PROTOCOL_PREFIX}localhost/${encodedInfo}/index.html`
|
||||
})
|
||||
|
||||
/* const getExtensionPathAsync = async (
|
||||
|
||||
Reference in New Issue
Block a user