text: window.deskgap = {
      platform: 'win32',
      postStringMessage: function (string) {
          window.chrome.webview.postMessage(string)
      }
  }
  
  document.addEventListener("DOMContentLoaded", function () {
      const style = document.createElement('style')
      document.head.appendChild(style)
      style.sheet.insertRule(`[data-deskgap-drag], [data-deskgap-drag] * {
          -webkit-app-region: drag;
      }`, 0)
      style.sheet.insertRule(`[data-deskgap-no-drag], [data-deskgap-no-drag] * {
          -webkit-app-region: no-drag;
      }`, 1)
      document.body.addEventListener('mousedown', evt => {
          if (evt.button !== 0) return;
          const { target } = evt;
          const appRegion = getComputedStyle(target)['-webkit-app-region'];
  
          if (appRegion === 'drag') {
              chrome.webview.hostObjects.sync.eventForwarder.drag;
              evt.preventDefault();
              evt.stopPropagation();
          }
      });
  });
  
  
  window.addEventListener('keydown', function(e) {
      if ((e.keyCode === 187 || e.keyCode === 189) && e.ctrlKey === true) {
          //Preventing ctrl+(+|-) zooming;
          e.preventDefault();
      }
  });
  window.addEventListener('wheel', function(e) {
      if (e.ctrlKey === true) {
          //Preventing ctrl-scroll zooming
          e.preventDefault();
      }
  });
  