mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2026-06-08 05:14:38 +00:00
Remove automatic code execution from hash fragment. References #16
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
__version__ = '1.2.5'
|
||||
__version__ = '1.2.6'
|
||||
|
||||
|
||||
import os
|
||||
|
||||
@@ -38,10 +38,6 @@ ws = new WebSocket ws_url
|
||||
ws.addEventListener 'open', ->
|
||||
console.log "WebSocket open", arguments
|
||||
ws.send 'R' + term.cols + ',' + term.rows
|
||||
if location.hash
|
||||
setTimeout ->
|
||||
ws.send 'S' + location.hash.slice(1) + '\n'
|
||||
, 100
|
||||
|
||||
ws.addEventListener 'error', ->
|
||||
console.log "WebSocket error", arguments
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user