diff --git a/package.json b/package.json index 42be5d4d..dce3ba48 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/src/embed/main.ts b/src/embed/main.ts index 9896c43d..6e175f25 100644 --- a/src/embed/main.ts +++ b/src/embed/main.ts @@ -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) { diff --git a/src/native-client/reader/main.ts b/src/native-client/reader/main.ts index e130c88e..7c299322 100644 --- a/src/native-client/reader/main.ts +++ b/src/native-client/reader/main.ts @@ -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 . import WebViewMessagingContext from '../../common/WebViewMessagingContext'; @@ -191,7 +191,7 @@ window.addEventListener( 'message', event => { if ( - !/(^|\.)readup\.com$/.test(documentLocation.hostname) + !/(^|\.)readup\.org$/.test(documentLocation.hostname) ) { return; }