Removing console.warn