mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Remove profiler
This commit is contained in:
parent
18761b7352
commit
a1b8cbc2fb
@ -24,9 +24,6 @@ var REFTEST = window.location.search.indexOf('reftest') !== -1;
|
|||||||
: new html2canvas.CanvasRenderer();
|
: new html2canvas.CanvasRenderer();
|
||||||
(function($) {
|
(function($) {
|
||||||
$.fn.html2canvas = function(options) {
|
$.fn.html2canvas = function(options) {
|
||||||
if (options && options.profile && window.console && window.console.profile && !CI) {
|
|
||||||
window.console.profile();
|
|
||||||
}
|
|
||||||
var date = new Date(),
|
var date = new Date(),
|
||||||
$message = null,
|
$message = null,
|
||||||
timeoutTimer = false,
|
timeoutTimer = false,
|
||||||
@ -52,9 +49,6 @@ var REFTEST = window.location.search.indexOf('reftest') !== -1;
|
|||||||
var $canvas = $(canvas),
|
var $canvas = $(canvas),
|
||||||
finishTime = new Date();
|
finishTime = new Date();
|
||||||
|
|
||||||
if (options && options.profile && window.console && window.console.profileEnd) {
|
|
||||||
window.console.profileEnd();
|
|
||||||
}
|
|
||||||
$canvas
|
$canvas
|
||||||
.addClass('html2canvas')
|
.addClass('html2canvas')
|
||||||
.css({
|
.css({
|
||||||
@ -153,7 +147,6 @@ var REFTEST = window.location.search.indexOf('reftest') !== -1;
|
|||||||
$.extend(
|
$.extend(
|
||||||
{
|
{
|
||||||
logging: true,
|
logging: true,
|
||||||
profile: true,
|
|
||||||
proxy: 'http://localhost:8082',
|
proxy: 'http://localhost:8082',
|
||||||
useCORS: false,
|
useCORS: false,
|
||||||
removeContainer: false,
|
removeContainer: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user