blob: 0840c06ff746b3f9a3be47ffda7bafe0a7eebded [file] [log] [blame]
<!DOCTYPE html>
<!--
Copyright (c) 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<link rel="import" href="/tracing/base/base.html">
<script>
'use strict';
// Vinn workaround for JSzip requiring window.
if (tr.isVinn) {
/**
* Hack.
*/
global.window = {};
}
</script>
<script src="/jszip.min.js"></script>
<script>
'use strict';
// Vinn workaround for JSzip requiring window.
if (tr.isVinn) {
/**
* Hack.
*/
global.JSZip = global.window.JSZip;
global.window = undefined;
} else if (tr.isNode) {
var jsZipAbsPath = HTMLImportsLoader.hrefToAbsolutePath(
'/jszip.min.js');
var jsZipModule = require(jsZipAbsPath);
global.JSZip = jsZipModule;
}
</script>