From 65b41c3f6e6dbd377a0cdc1de86e49309b134c68 Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Thu, 13 Jul 2017 17:16:13 -0700 Subject: [PATCH] Looser check for DZI schema --- src/dzitilesource.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dzitilesource.js b/src/dzitilesource.js index 443bfaca..ec5ea9a9 100644 --- a/src/dzitilesource.js +++ b/src/dzitilesource.js @@ -113,8 +113,10 @@ $.extend( $.DziTileSource.prototype, $.TileSource.prototype, /** @lends OpenSead } } - return ( "http://schemas.microsoft.com/deepzoom/2008" == ns || - "http://schemas.microsoft.com/deepzoom/2009" == ns ); + ns = (ns || '').toLowerCase(); + + return (ns.indexOf('schemas.microsoft.com/deepzoom/2008') !== -1 || + ns.indexOf('schemas.microsoft.com/deepzoom/2009') !== -1); }, /**