Skip to content

Commit

Permalink
Fix IPfs check in brave
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed Jan 6, 2024
1 parent 0a80d48 commit 960ceca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/ui/UI.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ export default class UI {
const nCores = navigator.hardwareConcurrency;
if (typeof nCores !== "undefined" && nCores > 0 && nCores < 4) return this.setSafeMode(true);

const isIPFs = window.location.href.startsWith("ipfs://");
const isIPFs =
window.location.href.startsWith("ipfs://") || window.location.href.includes(".ipfs.");
if (!isIPFs) {
if (!window.WebGLRenderingContext) return this.setSafeMode(true);
if (!window.WebGL2RenderingContext) return this.setSafeMode(true);
Expand Down

0 comments on commit 960ceca

Please sign in to comment.