chrome-nginx-json-autoindex.../mount-info.js

12 lines
381 B
JavaScript

"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();
}
}
})();