fix: extension url validation

This commit is contained in:
Mo Bitar
2021-11-14 11:26:57 -06:00
parent 76258f5462
commit dee60e0fae
4 changed files with 13 additions and 9 deletions

View File

@@ -11,12 +11,15 @@ export const UrlMissing: FunctionalComponent<IProps> = ({ componentName }) => {
<div className={'sk-panel-content'}>
<div className={'sk-panel-section stretch'}>
<div className={'sk-panel-section-title'}>
This extension is not installed correctly.
This extension is missing its URL property.
</div>
<p>Please uninstall {componentName}, then re-install it.</p>
<p>
This issue can occur if you access Standard Notes using an older version of the app.{' '}
Ensure you are running at least version 2.1 on all platforms.
In order to access your note immediately,
please switch from {componentName} to the Plain Editor.
</p>
<br/>
<p>
Please contact help@standardnotes.com to remedy this issue.
</p>
</div>
</div>

View File

@@ -189,6 +189,7 @@ export const ComponentView: FunctionalComponent<IProps> = observer(
}, [component, handleIframeLoadTimeout, loadTimeout]);
useEffect(() => {
reloadStatus();
if (!iframeRef.current) {
return;
}