Reduce logging.

This commit is contained in:
Richard Lewis 2018-02-23 15:26:47 +00:00
parent d755b8284c
commit 9b667f2c38

View file

@ -93,7 +93,6 @@ export default class Stickerpack extends React.Component {
_onWidgetAction(payload) { _onWidgetAction(payload) {
if (payload.action === "user_widget_updated") { if (payload.action === "user_widget_updated") {
console.warn("user widget updated");
this._getStickerPickerWidget(); this._getStickerPickerWidget();
return; return;
} }
@ -103,7 +102,6 @@ export default class Stickerpack extends React.Component {
// Stickers // Stickers
// TODO - Add support for stickerpacks from multiple app stores. // TODO - Add support for stickerpacks from multiple app stores.
// Render content from multiple stickerpack sources, each within their own iframe, within the stickerpack UI element. // Render content from multiple stickerpack sources, each within their own iframe, within the stickerpack UI element.
console.warn("Checking for sticker picker widgets");
const stickerpackWidget = Widgets.getStickerpackWidgets()[0]; const stickerpackWidget = Widgets.getStickerpackWidgets()[0];
let stickersContent; let stickersContent;
@ -111,7 +109,6 @@ export default class Stickerpack extends React.Component {
if (stickerpackWidget && stickerpackWidget.content && stickerpackWidget.content.url) { if (stickerpackWidget && stickerpackWidget.content && stickerpackWidget.content.url) {
// Set default name // Set default name
stickerpackWidget.content.name = stickerpackWidget.name || "Stickerpack"; stickerpackWidget.content.name = stickerpackWidget.name || "Stickerpack";
console.warn('Stickerpack widget', stickerpackWidget);
this.widgetId = stickerpackWidget.id; this.widgetId = stickerpackWidget.id;
stickersContent = ( stickersContent = (
@ -205,7 +202,6 @@ export default class Stickerpack extends React.Component {
*/ */
onFinished() { onFinished() {
this.setState({showStickers: false}); this.setState({showStickers: false});
console.warn("finshed");
} }
/** /**