Skip to content

Commit 0fd23c4

Browse files
committed
Merge branch 'fix/1.5.3' into released
2 parents 7ab1e5a + 9d549b2 commit 0fd23c4

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

Diff for: .storybook/config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ addParameters({
1313
theme: create({
1414
base: 'dark',
1515
brandTitle: 'Maskbook',
16-
brandUrl: 'https://maskbook.io/',
17-
brandImage: 'https://maskbook.io/img/maskbook--logotype-white.png',
16+
brandUrl: 'https://maskbook.com/',
17+
brandImage: 'https://maskbook.com/img/maskbook--logotype-white.png',
1818
}),
1919
isFullscreen: false,
2020
panelPosition: 'right',

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "maskbook",
3-
"version": "1.5.2",
3+
"version": "1.5.3",
44
"private": true,
55
"dependencies": {
66
"@holoflows/kit": "https://github.com/DimensionDev/holoflows-kit",

Diff for: public/manifest.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://json.schemastore.org/chrome-manifest",
33
"name": "Maskbook",
4-
"version": "1.5.2",
4+
"version": "1.5.3",
55
"manifest_version": 2,
66
"content_scripts": [
77
{
@@ -32,6 +32,6 @@
3232
"128": "128x128.png",
3333
"256": "256x256.png"
3434
},
35-
"homepage_url": "https://maskbook.io",
35+
"homepage_url": "https://maskbook.com",
3636
"description": "Encrypt your posts & chats on You-Know-Where. Allow only your friends to decrypt."
3737
}

Diff for: src/extension/background-script/CryptoService.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export async function encryptTo(
8181
OthersAESKeyEncryptedMap.set(key, othersAESKeyEncrypted)
8282

8383
return [
84-
`https://Maskbook.io : ${constructAlpha40({
84+
`${constructAlpha40({
8585
encryptedText: encryptedTextStr,
8686
iv: ivStr,
8787
ownersAESKeyEncrypted: ownersAESKeyStr,

Diff for: src/extension/content-script/injections/Posts.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,18 @@ new MutationObserverWatcher(posts)
154154
.startWatch()
155155

156156
function zipPostLinkPreview(node: DomProxy) {
157+
const parentEle = node.current.parentElement!
157158
if (isMobile) {
158-
const img = node.current.parentElement!.querySelector('a[href*="maskbook.io"]')
159+
const img =
160+
parentEle.querySelector('a[href*="maskbook.io"]') || parentEle.querySelector('a[href*="maskbook.com"]')
159161
const parent = img && img.closest('section')
160162
if (img && parent) {
161163
parent.style.display = 'none'
162164
}
163165
} else {
164-
const img = node.current.parentElement!.querySelector('a[href*="maskbook.io"] img')
166+
const img =
167+
parentEle.querySelector('a[href*="maskbook.io"] img') ||
168+
parentEle.querySelector('a[href*="maskbook.com"] img')
165169
const parent = img && img.closest('span')
166170
if (img && parent) {
167171
parent.style.display = 'none'

0 commit comments

Comments
 (0)