Skip to content

Commit

Permalink
replaced *.readup.com regex with .org version
Browse files Browse the repository at this point in the history
  • Loading branch information
jacamera committed Dec 1, 2022
1 parent dc9df3c commit ac1ae65
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
"contentParser": "2.0.2",
"metadataParser": "2.0.0"
},
"embed": "1.0.1",
"embed": "1.0.2",
"embedIframe": "1.0.0",
"extension": "6.2.1",
"nativeClient": {
"reader": "14.0.3",
"reader": "14.0.4",
"shareExtension": "4.0.6"
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/embed/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function activate(initializationResponse: InitializationActivationResponse) {
window.addEventListener(
'message',
event => {
if (!/(\/\/|\.)readup\.com$/.test(event.origin)) {
if (!/(\/\/|\.)readup\.org$/.test(event.origin)) {
return;
}
switch (event.data?.type as String || null) {
Expand Down
10 changes: 5 additions & 5 deletions src/native-client/reader/main.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Copyright (C) 2022 reallyread.it, inc.
//
//
// This file is part of Readup.
//
//
// Readup is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation.
//
//
// Readup is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
//
//
// You should have received a copy of the GNU Affero General Public License version 3 along with Foobar. If not, see <https://www.gnu.org/licenses/>.

import WebViewMessagingContext from '../../common/WebViewMessagingContext';
Expand Down Expand Up @@ -191,7 +191,7 @@ window.addEventListener(
'message',
event => {
if (
!/(^|\.)readup\.com$/.test(documentLocation.hostname)
!/(^|\.)readup\.org$/.test(documentLocation.hostname)
) {
return;
}
Expand Down

0 comments on commit ac1ae65

Please sign in to comment.