mirror of
https://github.com/offen/website.git
synced 2024-11-21 16:50:27 +01:00
use iframed opt out in homepage too
This commit is contained in:
parent
f1b601008a
commit
a0c7b3582d
@ -8,6 +8,7 @@ production_env: &production_env
|
||||
- AUDITORIUM_HOST=https://auditorium-alpha.offen.dev
|
||||
- VAULT_HOST=https://vault-alpha.offen.dev
|
||||
- ACCOUNTS_HOST=https://accounts-alpha.offen.dev
|
||||
- HOMEPAGE_HOST=https://www.offen.dev
|
||||
- NODE_ENV=production
|
||||
|
||||
deploy_preconditions: &deploy_preconditions
|
||||
|
@ -73,6 +73,7 @@ services:
|
||||
- SCRIPT_HOST=http://localhost:9977
|
||||
- AUDITORIUM_HOST=http://localhost:9955
|
||||
- ACCOUNTS_HOST=http://localhost:5000
|
||||
- HOMEPAGE_HOST=http://localhost:8000
|
||||
|
||||
script:
|
||||
build:
|
||||
|
@ -8,4 +8,21 @@ This will prevent __offen__ from aggregating the actions you have taken on parti
|
||||
|
||||
Operators now cannot draw any conclusions from your actions via __offen__. At the same time, however, they *cannot create a better experience* for you and other users.
|
||||
|
||||
<img style="-webkit-user-select: none; display:none;" src="https://server-alpha.offen.dev/opt-out">
|
||||
<script>
|
||||
var vault = document.createElement('iframe')
|
||||
vault.style.display = 'none'
|
||||
vault.setAttribute('width', '0')
|
||||
vault.setAttribute('height', '0')
|
||||
vault.setAttribute('frameBorder', '0')
|
||||
vault.setAttribute('scrolling', 'no')
|
||||
vault.addEventListener('load', function (e) {
|
||||
vault.contentWindow.postMessage({
|
||||
type: 'OPTOUT',
|
||||
payload: {
|
||||
status: true
|
||||
}
|
||||
}, '*')
|
||||
})
|
||||
vault.src = 'https://vault-alpha.offen.dev'
|
||||
document.body.append(vault)
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user