mirror of
https://github.com/filecoin-project/slate.git
synced 2024-09-11 22:07:08 +03:00
fix(extension-integration): update id name to use browser_extension
This commit is contained in:
parent
f6982c764f
commit
f70e7ea2d2
@ -123,7 +123,7 @@ export class ApplicationUserControlsPopup extends React.Component {
|
||||
}
|
||||
|
||||
_checkIfExtensionIsDownloaded = () => {
|
||||
const extensionElement = document.getElementById("chrome_extension");
|
||||
const extensionElement = document.getElementById("browser_extension");
|
||||
if (!extensionElement) return false;
|
||||
return extensionElement.className.includes("isDownloaded");
|
||||
};
|
||||
|
@ -13,7 +13,7 @@ class MyDocument extends Document {
|
||||
<body>
|
||||
{/** NOTE(amine): used to communicate with the extension via classNames.
|
||||
* e.g. if the extension is installed on the user's browser, it will add 'isDownloaded' to className*/}
|
||||
<div id="chrome_extension" />
|
||||
<div id="browser_extension" />
|
||||
<Main />
|
||||
<NextScript />
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user