Remove og:image with status.im URL
And make it configurable, albeit only at buuld time, as hopefully explained in the README.
This commit is contained in:
parent
aa54032500
commit
96f374ed69
3 changed files with 18 additions and 1 deletions
|
@ -3,6 +3,9 @@ const webpack = require('webpack');
|
|||
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
|
||||
let og_image_url = process.env.RIOT_OG_IMAGE_URL;
|
||||
if (!og_image_url) og_image_url = 'https://riot.im/app/img/logos/riot-im-logo-1.png';
|
||||
|
||||
module.exports = {
|
||||
entry: {
|
||||
"bundle": "./src/vector/index.js",
|
||||
|
@ -123,6 +126,9 @@ module.exports = {
|
|||
// bottom of <head> or the bottom of <body>, and I'm a bit scared
|
||||
// about moving them.
|
||||
inject: false,
|
||||
vars: {
|
||||
og_image_url: og_image_url,
|
||||
},
|
||||
}),
|
||||
],
|
||||
devtool: 'source-map',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue