http to https to avoid blocked requests (#833)

This commit is contained in:
FRC 2022-09-01 17:54:46 +01:00 committed by GitHub
parent 96be4e8992
commit 1208694d2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ export function embedContractCode(contract: Contract) {
export function embedContractGridCode(contracts: Contract[]) {
const height = (contracts.length - (contracts.length % 2)) * 100 + 'px'
const src = `http://${DOMAIN}/embed/grid/${contracts
const src = `https://${DOMAIN}/embed/grid/${contracts
.map((c) => c.slug)
.join('/')}`
return `<iframe height="${height}" src="${src}" title="Grid of contracts" frameborder="0"></iframe>`