diff --git a/sist2-vue/src/components/Lightbox.vue b/sist2-vue/src/components/Lightbox.vue index 2e06121..f3a187b 100644 --- a/sist2-vue/src/components/Lightbox.vue +++ b/sist2-vue/src/components/Lightbox.vue @@ -78,16 +78,6 @@ export default { } }; - document.onpointerdown = (e) => { - if (e.button === 2) { - - const isLightboxOpen = this.$refs.lightbox === undefined || this.$refs.lightbox.$el.tagName === undefined; - if (isLightboxOpen) { - e.preventDefault(); - return false; - } - } - } }, methods: { keyDownListener(e) { diff --git a/sist2-vue/src/ml/CLIPTransformerModel.js b/sist2-vue/src/ml/CLIPTransformerModel.js index 35c06c5..d678954 100644 --- a/sist2-vue/src/ml/CLIPTransformerModel.js +++ b/sist2-vue/src/ml/CLIPTransformerModel.js @@ -22,7 +22,9 @@ export class CLIPTransformerModel { async loadModel(onProgress) { ort.env.wasm.wasmPaths = ORT_WASM_PATHS; - ort.env.wasm.numThreads = 2; + if (window.crossOriginIsolated) { + ort.env.wasm.numThreads = 2; + } let buf = await ModelStore.get(this._modelUrl); if (!buf) {