GeSHi Source Viewer: offline.jsView Raw


  1. var offlineFileExists = function(url) {
  2.     const fs = require("fs"); // Or `import fs from "fs";` with ESM
  3.     return fs.existsSync(url.replace("chrome-extension://"+location.host+"/",""));
  4. }
  5.  
  6. $(document).ready(function () {
  7.     var win = nw.Window.get();
  8.     if (dm) {
  9.         win.showDevTools();
  10.     }
  11. });