mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-13 05:31:37 +08:00
Fixed Integration-Tests
This commit is contained in:
@@ -34,8 +34,8 @@ module.exports = {
|
||||
halfSample: true,
|
||||
patchSize: "medium", // x-small, small, medium, large, x-large
|
||||
debug: {
|
||||
showCanvas: true,
|
||||
showPatches: true,
|
||||
showCanvas: false,
|
||||
showPatches: false,
|
||||
showFoundPatches: false,
|
||||
showSkeleton: false,
|
||||
showLabels: false,
|
||||
|
||||
@@ -42,7 +42,7 @@ export default {
|
||||
initConfig();
|
||||
|
||||
function initCanvas() {
|
||||
if (typeof document !== 'undefined') {
|
||||
if (ENV.development && typeof document !== 'undefined') {
|
||||
var $debug = document.querySelector("#debug.detection");
|
||||
_canvas.dom.frequency = document.querySelector("canvas.frequency");
|
||||
if (!_canvas.dom.frequency) {
|
||||
@@ -91,7 +91,7 @@ export default {
|
||||
}
|
||||
|
||||
function initConfig() {
|
||||
if (typeof document !== 'undefined') {
|
||||
if (ENV.development && typeof document !== 'undefined') {
|
||||
var i,
|
||||
vis = [{
|
||||
node: _canvas.dom.frequency,
|
||||
|
||||
Reference in New Issue
Block a user