Remove custom modernizr.

This commit is contained in:
Lars Jung 2016-06-03 17:46:01 +02:00
parent 70d6528190
commit da9d027fed
4 changed files with 3 additions and 11 deletions

View file

@ -1,7 +1,6 @@
const {window: win, document: doc, _: lo} = require('../win');
const {request} = require('./server');
const allsettings = require('./settings');
const modernizr = require('./modernizr');
const event = require('./event');
const notification = require('../view/notification');
@ -11,7 +10,7 @@ const settings = lo.extend({
fastBrowsing: true,
unmanagedInNewWindow: true
}, allsettings.view);
const history = settings.fastBrowsing && modernizr.history ? win.history : null;
const history = settings.fastBrowsing ? win.history : null;
const reUriToPathname = /^.*:\/\/[^\/]*|[^\/]*$/g;
const reForceEncoding = [
[/\/+/g, '/'],

View file

@ -1,5 +0,0 @@
module.exports = {
canvas: true,
history: true,
localstorage: true
};

View file

@ -1,7 +1,6 @@
const win = require('../win');
const modernizr = require('./modernizr');
const store = modernizr.localstorage ? win.localStorage : {};
const store = win.localStorage;
const storekey = '_h5ai';

View file

@ -1,7 +1,6 @@
const {window: win, jQuery: jq, _: lo} = require('../win');
const event = require('../core/event');
const format = require('../core/format');
const modernizr = require('../core/modernizr');
const resource = require('../core/resource');
const allsettings = require('../core/settings');
const store = require('../core/store');
@ -96,7 +95,7 @@ function update(item) {
if (settings.qrcode) {
$qrcode.empty().qrcode({
render: modernizr.canvas ? 'canvas' : 'div',
render: 'canvas',
size: 200,
fill: settings.qrColor,
background: null,