"use strict"; (function() { window.onload = function() { document.getElementById("mount-info-form").onsubmit = function() { let mountInfo = { name: document.getElementById("mount-name").value, url: document.getElementById("mount-url").value }; chrome.runtime.sendMessage({ mountInfo: mountInfo, senderId: chrome.app.window.current().id}); window.close(); } } })();