diff --git a/package.json b/package.json index 4932a1e9..1d932918 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "app", - "version": "5.6.53", + "version": "5.6.54", "description": "All-in-one bookmark manager", "author": "Rustem Mussabekov", "license": "MIT", diff --git a/src/data/sagas/bookmarks/single.js b/src/data/sagas/bookmarks/single.js index e2b1c5f2..32016946 100755 --- a/src/data/sagas/bookmarks/single.js +++ b/src/data/sagas/bookmarks/single.js @@ -21,6 +21,8 @@ import { getMeta } from '../../helpers/bookmarks' +import { isPro } from '../../selectors/user' + //Requests export default function* () { //helpers @@ -369,10 +371,14 @@ function* reorder({ _id, ignore, order, collectionId }) { } function* suggestFields({ obj, ignore }) { - if (ignore) return; - if (!obj?.link && !obj?._id) return; + if (ignore) return + if (!obj?.link && !obj?._id) return try{ + const state = yield select() + const pro = isPro(state) + if (!pro) return + const { item } = obj._id ? yield call(Api.get, `raindrop/${obj._id}/suggest`) : yield call(Api.post, 'raindrop/suggest', obj) diff --git a/src/routes/my/layout.js b/src/routes/my/layout.js index 325f9b62..905ce625 100644 --- a/src/routes/my/layout.js +++ b/src/routes/my/layout.js @@ -3,14 +3,14 @@ import { Outlet } from 'react-router-dom' import SplitView from '~co/screen/splitview' import Sidebar from './sidebar' -import OnboardUpgrade from './onboard-upgrade' +// import OnboardUpgrade from './onboard-upgrade' export default function PageMyLayout() { return ( - + {/* */} ) } \ No newline at end of file diff --git a/src/target/extension/background/highlights/logic.js b/src/target/extension/background/highlights/logic.js index a9c12dbf..2ea3cffd 100644 --- a/src/target/extension/background/highlights/logic.js +++ b/src/target/extension/background/highlights/logic.js @@ -1,5 +1,5 @@ import browser from 'webextension-polyfill' -import { getMeta } from '~target' +import { getMeta, environment } from '~target' import * as links from '../links' import inject from './highlight.js?asis' import Api from '~data/modules/api' @@ -26,7 +26,7 @@ export async function load(tab) { //activate if ( highlights.length || //when any highlights - !browser.contextMenus || //always active for mobile + environment.includes('safari-ios') || //always active for safari-ios await isInjected(tab) //or reset highlights if already injected ) await apply(tab, highlights)