From 5b30c684d32c001c2f977d520cda71ab36fa5096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Rodr=C3=ADguez?= Date: Sat, 14 Jan 2017 05:56:42 +0100 Subject: [PATCH] chore: fix plunkers for IE11 (#3095) --- public/resources/js/util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/resources/js/util.js b/public/resources/js/util.js index 89253de090..b6432ba581 100644 --- a/public/resources/js/util.js +++ b/public/resources/js/util.js @@ -6,7 +6,7 @@ var NgIoUtil = (function () { NgIoUtil.isDoc = function ($location, lang) { var loc = $location.absUrl(); - return loc.includes('/docs/' + lang + '/'); + return loc.indexOf('/docs/' + lang + '/') >= 0; }; // The following util functions are adapted from _utils-fn.jade. @@ -19,7 +19,7 @@ var NgIoUtil = (function () { * * - app/main.ts -> web/main.dart * - displaying-data/ts/app/app.component.2.ts -> displaying-data/dart/lib/app_component.dart - * + * * Notice that the '.2' is dropped from the name. */ if (!_path) return _path;