You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, the QZ Tray sample.html is designed to fallback on QZ Print (the legacy applet version) if the plugin is found in the browser. This code can be easily removed to get rid of this feature if you find it unnecessary.
/** * Re-use the new WebSockets deployment if available. If not, fallback on the Oracle deployment */window["deployQZ"]=typeof(deployQZ)=="function" ? deployQZ : deployQZApplet;
Remove the deployQZApplet() function.
functiondeployQZApplet(){console.log('Starting deploy of qz applet');varattributes={id: "qz",code:'qz.PrintApplet.class',archive:'../qz-print.jar',width:1,height:1};varparameters={jnlp_href: '../qz-print_jnlp.jnlp',cache_option:'plugin',disable_logging:'false',initial_focus:'false',separate_jvm:'true'};if(deployJava.versionCheck("1.7+")==true){}elseif(deployJava.versionCheck("1.6.0_45+")==true){}elseif(deployJava.versionCheck("1.6+")==true){deleteparameters['jnlp_href'];}deployJava.runApplet(attributes,parameters,'1.6');}
Remove the qzNoConnection body.
//run deploy applet After page loadvarcontent='';varoldWrite=document.write;document.write=function(text){content+=text;};deployQZApplet();
After removing these lines, QZ Tray will no longer try to fallback on QZ Print.