From 775f51a04b944e72d4b967acfde092cf9120f416 Mon Sep 17 00:00:00 2001 From: Deathamns Date: Sun, 19 Oct 2014 17:10:31 +0200 Subject: [PATCH] Fix "invalid token" exception in Safari Seems like in older versions the const keyword doesn't play well with the "use strict" directive --- src/js/net-filtering.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/net-filtering.js b/src/js/net-filtering.js index 82338cc8f..5f9cd674b 100644 --- a/src/js/net-filtering.js +++ b/src/js/net-filtering.js @@ -21,7 +21,9 @@ /* jshint bitwise: false */ /* global µBlock */ -'use strict'; + +// Older Safari throws an exception for const when it's used with 'use strict'. +// 'use strict'; /******************************************************************************/