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;
}

View File

@@ -72,7 +72,7 @@
"@reach/listbox": "^0.16.2",
"@standardnotes/features": "1.8.1",
"@standardnotes/sncrypto-web": "1.5.3",
"@standardnotes/snjs": "2.17.7",
"@standardnotes/snjs": "2.17.8",
"mobx": "^6.3.5",
"mobx-react-lite": "^3.2.1",
"preact": "^10.5.15",

View File

@@ -2199,10 +2199,10 @@
buffer "^6.0.3"
libsodium-wrappers "^0.7.9"
"@standardnotes/snjs@2.17.7":
version "2.17.7"
resolved "https://registry.yarnpkg.com/@standardnotes/snjs/-/snjs-2.17.7.tgz#10f56e46d6a992e84da94fb7b9ec8dfc8a9a8da3"
integrity sha512-7BxEywqhIfYHfkKDlS466vMeWPznXwXrQVj21eKG4ibiAyYhuTXRUYhnCwZKdloNm9Wl0iChJXuiWfev2+tGqg==
"@standardnotes/snjs@2.17.8":
version "2.17.8"
resolved "https://registry.yarnpkg.com/@standardnotes/snjs/-/snjs-2.17.8.tgz#b701e36de871cf44de461bab9e10c215228b0cd1"
integrity sha512-n9xLdYWA2wHLxdXO6Bree9A30A30D8Ci+s/3plnD1xGSl/u/w0K51jmhNrJNnjr2NWfRHWBz746U0hx1JcWqnw==
dependencies:
"@standardnotes/auth" "^3.8.1"
"@standardnotes/common" "^1.2.1"