LockExistsError: Check if node is already running in browser

Hello,

when instantiating ipfs-core in React-App with

setIpfs(await IPFS.create());

how can I check if there is already a node running in the browser and avoid starting another one. So I can connect the instance (IPFS.create()) with the already running node in the browser. I have searched everything, but maybe someone can help me here.