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=CC=97=CC=96=CC=A4=CC=99=CC=9C=CD=8De=CC=BF=CC=AB=CD=8E=CC=9F?= =?UTF-8?q?=CC=BC=CC=BA=CC=ABr=CC=8A=CC=91=CC=BF=CC=85=CD=AF=CD=99=CD=85?= =?UTF-8?q?=CC=B0=29=CD=86=CC=87=CD=A7=CC=9A=CD=91=CC=AA=CC=96=CD=87=CC=9D?= =?UTF-8?q?=CC=AE=CC=AA=CD=96=CC=A6?= Date: Thu, 31 Dec 2015 15:32:10 -0500 Subject: [PATCH 1/2] Attribution of fix. --- snippets/log-globals/log-globals.js | 1 + 1 file changed, 1 insertion(+) diff --git a/snippets/log-globals/log-globals.js b/snippets/log-globals/log-globals.js index 78595cf..c964034 100644 --- a/snippets/log-globals/log-globals.js +++ b/snippets/log-globals/log-globals.js @@ -1,6 +1,7 @@ /* log-globals by Sindre Sorhus + modified by Andy Hawkins (http://a904guy.com) https://github.com/sindresorhus/log-globals MIT License */ From 75a1a3dc68a948cf5e22cf65959d0d20b698f8b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andy=20Hawkins=20=E2=80=94=20=28=CC=90=CC=85=CC=96=CC=A3?= =?UTF-8?q?=CD=95=CC=A0=CC=AC=CC=AD=CC=9E=CC=AAi=CC=89=CD=AE=CC=AD=CC=A3?= =?UTF-8?q?=CD=88=CC=AA=CC=A0s=CD=91=CD=8C=CD=8B=CD=AA=CC=83=CC=8D=CC=B3?= =?UTF-8?q?=CC=B3=CC=A6=CC=9E=CC=B0=CC=9C=CC=9E=CC=B3=20=CC=81=CD=91=CD=A8?= =?UTF-8?q?=CD=84=CC=8E=CC=8B=CD=AE=CD=8A=CC=80=CC=A9=CC=98n=CC=83=CC=88?= =?UTF-8?q?=CD=AE=CD=A6=CC=81=CD=AB=CD=90=CD=9B=CD=94=CC=A3=CD=85=CD=85?= =?UTF-8?q?=CD=93=CC=ACo=CC=90=CD=86=CC=BD=CC=A9=CC=A6=CC=B3=CC=A0=CC=99?= =?UTF-8?q?=CC=97=CC=AF=CC=BAt=CD=82=CD=A9=CD=8B=CC=85=CD=84=CC=9C=CC=A5?= =?UTF-8?q?=CC=BB=CC=99=CC=9F=CC=BC=CC=9C=20=CD=92=CD=8B=CC=85=CC=81=CD=90?= =?UTF-8?q?=CC=A0=CC=A6=CC=B9=CC=9F=CD=95=CD=95=CC=B1=CD=89a=CC=84=CD=A6?= =?UTF-8?q?=CC=92=CC=8D=CD=8B=CC=9F=CC=BB=CC=B1=20=CD=A8=CD=A9=CD=8A=CD=82?= =?UTF-8?q?=CC=89=CD=85=CC=97=CC=9E=CD=9Ah=CD=A3=CD=94=CC=BC=CD=9A=CC=A9?= =?UTF-8?q?=CD=9A=CC=AA=CC=9D=CC=9Da=CC=92=CC=93=CD=AC=CC=AB=CC=ABc=CC=83?= =?UTF-8?q?=CD=A5=CD=AF=CC=A6=CC=B2=CC=B3=CD=8D=CC=B9k=CC=8A=CC=B2=CD=95?= =?UTF-8?q?=CC=97=CC=96=CC=A4=CC=99=CC=9C=CD=8De=CC=BF=CC=AB=CD=8E=CC=9F?= =?UTF-8?q?=CC=BC=CC=BA=CC=ABr=CC=8A=CC=91=CC=BF=CC=85=CD=AF=CD=99=CD=85?= =?UTF-8?q?=CC=B0=29=CD=86=CC=87=CD=A7=CC=9A=CD=91=CC=AA=CC=96=CD=87=CC=9D?= =?UTF-8?q?=CC=AE=CC=AA=CD=96=CC=A6?= Date: Thu, 31 Dec 2015 15:33:36 -0500 Subject: [PATCH 2/2] Update log-globals.js Fixes ``Uncaught TypeError: Cannot convert object to primitive value`` found when executed on linkedIn.com/pulse/ Just let chrome handle return, it will result in the same outcome. Expected Outcome (after fix): ![image](https://cloud.githubusercontent.com/assets/404081/12068042/1967600a-afd3-11e5-8ead-8b9858b77fed.png) Error encountered: ![image](https://cloud.githubusercontent.com/assets/404081/12068054/48c2f1ca-afd3-11e5-9635-986ca733d115.png) --- snippets/log-globals/log-globals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/log-globals/log-globals.js b/snippets/log-globals/log-globals.js index c964034..8501770 100644 --- a/snippets/log-globals/log-globals.js +++ b/snippets/log-globals/log-globals.js @@ -30,5 +30,5 @@ return ret; } - console.log(detectGlobals()); + return detectGlobals(); })();