The only case you are in danger is when you opened the Electrum wallet domain and you surf on the internet. That will open the possibility for a hacker to getting access to your wallet.
Hardware wallets work differently. You're talking about the desktop wallet.