From 821ebdd57b7e39e328fc95eedbb63ffc02c81983 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Thu, 20 Oct 2022 15:29:57 +0300 Subject: [PATCH] Use fetch() instead of iframe to make remote control requests --- app/assets/javascripts/index.js | 18 ++++-------------- app/controllers/application_controller.rb | 4 +--- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index c419f9321..9df0f0ad5 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -255,20 +255,10 @@ $(document).ready(function () { }); function sendRemoteEditCommand(url, callback) { - var iframe = $("