Skip to content

Commit af13a7f

Browse files
committed
refactor: revert update to IS_DEVTOOL
1 parent adfb7e3 commit af13a7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/CopyButton.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
/* global chrome */
12
import React, { useState, useEffect } from 'react';
23
import IconButton from './IconButton';
34
import SuccessIcon from './icons/SuccessIcon';
45
import CopyIcon from './icons/CopyIcon';
56

6-
const IS_DEVTOOL = Boolean(window?.chrome?.runtime?.id);
7+
const IS_DEVTOOL = !!(window.chrome && chrome.runtime && chrome.runtime.id);
78

89
/**
910
*

0 commit comments

Comments
 (0)