Skip to content

Commit

Permalink
fix: Add polyfill for use in browsers when qs.unescape is unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
okdistribute committed Apr 20, 2018
1 parent 7bda03c commit e1ee58d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/tilelive.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ var qs = require('querystring');
var progress = require('progress-stream');
var queue = require('queue-async');

// polyfill for browsers
if (!qs.unescape) qs.unescape = decodeURIComponent

global.tileliveProtocols = global.tileliveProtocols || {};

// Add your protocol handlers here.
Expand Down

0 comments on commit e1ee58d

Please sign in to comment.