We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adfb7e3 commit af13a7fCopy full SHA for af13a7f
src/components/CopyButton.js
@@ -1,9 +1,10 @@
1
+/* global chrome */
2
import React, { useState, useEffect } from 'react';
3
import IconButton from './IconButton';
4
import SuccessIcon from './icons/SuccessIcon';
5
import CopyIcon from './icons/CopyIcon';
6
-const IS_DEVTOOL = Boolean(window?.chrome?.runtime?.id);
7
+const IS_DEVTOOL = !!(window.chrome && chrome.runtime && chrome.runtime.id);
8
9
/**
10
*
0 commit comments