1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 12:50:36 +01:00

Fixed name collision with parameter name.

This commit is contained in:
kkapsner 2017-09-23 22:50:17 +02:00
parent 581af1db4f
commit 26176b50f8

View File

@ -18,11 +18,11 @@ Promise.all([
const {error, warning, message, notice, verbose, setPrefix: setLogPrefix} = require("./logging");
setLogPrefix("page action script");
function modalPrompt(message, defaultValue){
function modalPrompt(messageText, defaultValue){
message("open modal prompt");
return new Promise(function(resolve, reject){
document.body.innerHTML = "";
document.body.appendChild(document.createTextNode(message));
document.body.appendChild(document.createTextNode(messageText));
var input = document.createElement("input");
input.value = defaultValue;
document.body.appendChild(input);