mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
Bumping the JS libs to fix the build (#2616)
* bumping the js libs * New linting rules * More linting * More * Done linting * npm >=4.5.0 * Bumping node * Tweaking the build * Fixing the damn build * Fixing the apps
This commit is contained in:
committed by
GitHub
parent
a2b30f35fc
commit
366ecefbaa
@@ -1,6 +1,7 @@
|
||||
/* global notify */
|
||||
/* eslint global-require: 0 */
|
||||
import $ from 'jquery';
|
||||
|
||||
const d3 = window.d3 || require('d3');
|
||||
|
||||
export const EARTH_CIRCUMFERENCE_KM = 40075.16;
|
||||
@@ -31,7 +32,7 @@ export function rgbLuminance(r, g, b) {
|
||||
|
||||
export function getParamFromQuery(query, param) {
|
||||
const vars = query.split('&');
|
||||
for (let i = 0; i < vars.length; i++) {
|
||||
for (let i = 0; i < vars.length; i += 1) {
|
||||
const pair = vars[i].split('=');
|
||||
if (decodeURIComponent(pair[0]) === param) {
|
||||
return decodeURIComponent(pair[1]);
|
||||
|
||||
Reference in New Issue
Block a user