Skip to content

Commit

Permalink
Fix mountDrive check
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed Jul 22, 2024
1 parent 7e93512 commit cb3105e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/pyodide-kernel-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ const kernel: JupyterLiteServerPlugin<void> = {
create: async (options: IKernel.IOptions): Promise<IKernel> => {
const { PyodideKernel } = await import('@jupyterlite/pyodide-kernel');

const mountDrive = !!(serviceWorker?.enabled && broadcastChannel?.enabled);
const mountDrive = !!(
(serviceWorker?.enabled && broadcastChannel?.enabled) ||
crossOriginIsolated
);

if (mountDrive) {
console.info('Pyodide contents will be synced with Jupyter Contents');
Expand Down

0 comments on commit cb3105e

Please sign in to comment.