From 2575b4a70c8b1898d1f688d6fa19ed08c540ae40 Mon Sep 17 00:00:00 2001 From: bmac Date: Tue, 9 Jan 2018 22:23:38 -0500 Subject: [PATCH] Stop using deprecated vendor-prefix hook to inject enableoptionalfeatures url check. --- lib/enable-optional-features-via-url/index.js | 19 ++++++++++++++----- tests/index.html | 1 + 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/lib/enable-optional-features-via-url/index.js b/lib/enable-optional-features-via-url/index.js index 968a0373d38..28986444d1c 100644 --- a/lib/enable-optional-features-via-url/index.js +++ b/lib/enable-optional-features-via-url/index.js @@ -12,13 +12,22 @@ module.exports = { the flag to true when there is a `enableoptionalfeatures` query parameter. */ contentFor: function(name) { - if (name === "vendor-prefix") { + if (name === "enable-optional-features") { var array = [ + "", ]; return array.join('\n'); diff --git a/tests/index.html b/tests/index.html index 5209b852321..1f02805e3bf 100644 --- a/tests/index.html +++ b/tests/index.html @@ -20,6 +20,7 @@ {{content-for "body"}} {{content-for "test-body"}} + {{content-for "enable-optional-features"}}