1<!DOCTYPE html> 2<!-- 3Copyright (c) 2013 The Chromium Authors. All rights reserved. 4Use of this source code is governed by a BSD-style license that can be 5found in the LICENSE file. 6--> 7<link rel="import" href="/tracing/base/base.html"> 8 9<script> 10'use strict'; 11// Vinn workaround for JSzip requiring window. 12if (tr.isVinn) { 13 /** 14 * Hack. 15 */ 16 global.window = {}; 17} 18</script> 19<script src="/jszip.min.js"></script> 20<script> 21'use strict'; 22// Vinn workaround for JSzip requiring window. 23if (tr.isVinn) { 24 /** 25 * Hack. 26 */ 27 global.JSZip = global.window.JSZip; 28 global.window = undefined; 29} else if (tr.isNode) { 30 var jsZipAbsPath = HTMLImportsLoader.hrefToAbsolutePath( 31 '/jszip.min.js'); 32 var jsZipModule = require(jsZipAbsPath); 33 global.JSZip = jsZipModule; 34} 35</script> 36