Skip to content

Commit

Permalink
- Fix login redirect (safari specific)
Browse files Browse the repository at this point in the history
- Fix small bugs
  • Loading branch information
Rustem Mussabekov committed May 16, 2024
1 parent d08ff7f commit 9030d98
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions build/xcode/Save to Raindrop.io/App/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>5.6.31</string>
<string>5.6.32</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
Expand All @@ -32,7 +32,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>336</string>
<string>343</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.productivity</string>
<key>LSMinimumSystemVersion</key>
Expand Down
4 changes: 2 additions & 2 deletions build/xcode/Save to Raindrop.io/Extension/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>5.6.31</string>
<string>5.6.32</string>
<key>CFBundleVersion</key>
<string>336</string>
<string>343</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSExtension</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@
CODE_SIGN_ENTITLEMENTS = Extension/Extension.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 336;
CURRENT_PROJECT_VERSION = 343;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = 7459JWM5TY;
ENABLE_HARDENED_RUNTIME = YES;
Expand All @@ -450,7 +450,7 @@
"@executable_path/../../../../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
MARKETING_VERSION = 5.6.31;
MARKETING_VERSION = 5.6.32;
PRODUCT_BUNDLE_IDENTIFIER = io.raindrop.safari.extension;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -465,7 +465,7 @@
CODE_SIGN_ENTITLEMENTS = Extension/Extension.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 336;
CURRENT_PROJECT_VERSION = 343;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = 7459JWM5TY;
ENABLE_HARDENED_RUNTIME = YES;
Expand All @@ -476,7 +476,7 @@
"@executable_path/../../../../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
MARKETING_VERSION = 5.6.31;
MARKETING_VERSION = 5.6.32;
PRODUCT_BUNDLE_IDENTIFIER = io.raindrop.safari.extension;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -495,7 +495,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 336;
CURRENT_PROJECT_VERSION = 343;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = 7459JWM5TY;
ENABLE_HARDENED_RUNTIME = YES;
Expand All @@ -506,7 +506,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
MARKETING_VERSION = 5.6.31;
MARKETING_VERSION = 5.6.32;
PRODUCT_BUNDLE_IDENTIFIER = io.raindrop.safari;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand All @@ -523,7 +523,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 336;
CURRENT_PROJECT_VERSION = 343;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = 7459JWM5TY;
ENABLE_HARDENED_RUNTIME = YES;
Expand All @@ -534,7 +534,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
MARKETING_VERSION = 5.6.31;
MARKETING_VERSION = 5.6.32;
PRODUCT_BUNDLE_IDENTIFIER = io.raindrop.safari;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "app",
"version": "5.6.31",
"version": "5.6.32",
"description": "",
"author": "",
"license": "ISC",
Expand Down
2 changes: 1 addition & 1 deletion src/co/highlights/item/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function HighlightsItemView({ text, color, created, pro, onScroll
const onFormMouseDown = useCallback(e=>{
if (noteRef.current)
if (e.target == e.currentTarget || e.target == noteRef.current)
setTimeout(() => noteRef.current.focus())
setTimeout(() => noteRef.current?.focus())
}, [noteRef])

return (
Expand Down
2 changes: 1 addition & 1 deletion src/co/overlay/modal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class Modal extends React.Component {
onWindowMouseDown = e => {
//prevent clicking outside when important true
if (this.props.important &&
!this.body.current.contains(e.target)){
!this.body.current?.contains(e.target)){
e.preventDefault()
e.stopPropagation()
}
Expand Down
4 changes: 2 additions & 2 deletions src/routes/account/redirect.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export default function AccountRedirect() {
sessionStorage.removeItem('redirect')

//redirect inside of an app
if (redirect.startsWith(window.location.origin))
return <Navigate to={redirect.replace(window.location.origin, '')} replace />
if (redirect.toLowerCase().startsWith(window.location.origin.toLowerCase()))
return <Navigate to={redirect.replace(new RegExp(window.location.origin, 'i'), '')} replace />

//redirect outside
location.href = redirect
Expand Down

0 comments on commit 9030d98

Please sign in to comment.