invoke console warning through window to prevent from being discarded on prod

This commit is contained in:
Nicolas Ferro
2018-02-22 21:00:55 -03:00
parent a3e2448f25
commit e33ccb57b6
+1 -1
View File
@@ -16,7 +16,7 @@ function parseAssetURL() {
// Try to get the url from the canonical tag on the page.
return document.querySelector('link[rel="canonical"]').href;
} catch (e) {
console.warn(
window.console.warn(
'This page does not include a canonical link tag. Talk has inferred this asset_url from the window object. Query params have been stripped, which may cause a single thread to be present across multiple pages.'
);