[GH-ISSUE #101] iOS 9.3 issue #72

Closed
opened 2026-02-27 23:22:52 +03:00 by kerem · 3 comments
Owner

Originally created by @benjenq on GitHub (Mar 7, 2017).
Original GitHub issue: https://github.com/SpacehuhnTech/esp8266_deauther/issues/101

I've tested it on NodeMCU and and it works! fantastic (via PC). A little bit issue need to report.

it doesn't work on iOS 9.3 device (can not do scan action via iOS 9.3 device). iOS 10 is OK.

I found it's javascript issue and need to fix if you want to play via iOS 9 device:

functions.js : line 1

function getResponse(adr, callback, timeoutCallback = function(){location.reload()}, timeout = 8000){

need to change as following:

function getResponse(adr, callback, timeoutCallback, timeout){
	if(timeoutCallback === undefined) { 
		 timeoutCallback = function(){
		 	location.reload()
		 };
	}
	if(timeout === undefined) { 
		timeout = 8000; 
	}

And
clients.html: line 75

function getResults(reload = false){

need to change as following:

function getResults(reload){
  if(reload === undefined){
     reload = false;
  }
Originally created by @benjenq on GitHub (Mar 7, 2017). Original GitHub issue: https://github.com/SpacehuhnTech/esp8266_deauther/issues/101 I've tested it on NodeMCU and and it works! fantastic (via PC). A little bit issue need to report. it doesn't work on iOS 9.3 device (can not do scan action via iOS 9.3 device). iOS 10 is OK. I found it's javascript issue and need to fix if you want to play via iOS 9 device: **functions.js : line 1** ```javascript function getResponse(adr, callback, timeoutCallback = function(){location.reload()}, timeout = 8000){ ``` need to change as following: ```javascript function getResponse(adr, callback, timeoutCallback, timeout){ if(timeoutCallback === undefined) { timeoutCallback = function(){ location.reload() }; } if(timeout === undefined) { timeout = 8000; } ``` And **clients.html: line 75** ```javascript function getResults(reload = false){ ``` need to change as following: ```javascript function getResults(reload){ if(reload === undefined){ reload = false; } ```
kerem 2026-02-27 23:22:52 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@N0vaPixel commented on GitHub (Mar 7, 2017):

@benjenq Thanks for you help !
This means that old browser can't handle default parameters ?

<!-- gh-comment-id:284880008 --> @N0vaPixel commented on GitHub (Mar 7, 2017): @benjenq Thanks for you help ! This means that old browser can't handle default parameters ?
Author
Owner

@benjenq commented on GitHub (Mar 8, 2017):

It throw out a error in iOS 9.3 :

'SyntaxError: Unexpected token '='. Expected a ')' or a ',' after a parameter declaration.'

It seem like old version of Apple safari issue.

<!-- gh-comment-id:284910833 --> @benjenq commented on GitHub (Mar 8, 2017): It throw out a error in iOS 9.3 : ``` 'SyntaxError: Unexpected token '='. Expected a ')' or a ',' after a parameter declaration.' ``` It seem like old version of Apple safari issue.
Author
Owner

@N0vaPixel commented on GitHub (Mar 8, 2017):

The changes have been committed (testing branch), it should be fixed. Thanks. 👍

<!-- gh-comment-id:284920506 --> @N0vaPixel commented on GitHub (Mar 8, 2017): The changes have been committed (testing branch), it should be fixed. Thanks. 👍
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/esp8266_deauther#72
No description provided.