Skip to main content
added 23 characters in body
Source Link
4b0
  • 406
  • 2
  • 9

I found the exact error which I faced:

cannot read property 0 or null

on this line when the script tries to attach custom DOM elements:

 site_options += '<option ' + selected + ' value="' + value.site + '">Show Only ' + value.site[0].toUpperCase() + value.site.substr(1) + '</option>';

And fixed that to check null before this line:

if(value.site != null)
site_options += '<option ' + selected + ' value="' + value.site + '">Show Only ' + value.site[0].toUpperCase() + value.site.substr(1) + '</option>';

Now it works.

I found the exact error which I faced:

cannot read property 0 or null

on this line when the script tries to attach custom DOM elements:

 site_options += '<option ' + selected + ' value="' + value.site + '">Show Only ' + value.site[0].toUpperCase() + value.site.substr(1) + '</option>';

And fixed that to check null before this line:

if(value.site != null)
site_options += '<option ' + selected + ' value="' + value.site + '">Show Only ' + value.site[0].toUpperCase() + value.site.substr(1) + '</option>';

Now it works.

I found the exact error which I faced:

cannot read property 0 or null

on this line when the script tries to attach custom DOM elements:

 site_options += '<option ' + selected + ' value="' + value.site + '">Show Only ' + value.site[0].toUpperCase() + value.site.substr(1) + '</option>';

And fixed that to check null before this line:

if(value.site != null)
site_options += '<option ' + selected + ' value="' + value.site + '">Show Only ' + value.site[0].toUpperCase() + value.site.substr(1) + '</option>';

Now it works.

added 13 characters in body
Source Link
Brock Adams
  • 13k
  • 5
  • 39
  • 64

I findfound the exact errorerror which I faced:

cannot read property 0 or null

on this line when trythe script tries to attach custom DOM elements.:

 site_options += '<option ' + selected + ' value="' + value.site + '">Show Only ' + value.site[0].toUpperCase() + value.site.substr(1) + '</option>';

And fixed that to check null before this line:

if(value.site != null)
site_options += '<option ' + selected + ' value="' + value.site + '">Show Only ' + value.site[0].toUpperCase() + value.site.substr(1) + '</option>';

Now it's workit works.

I find the exact error which I faced:

cannot read property 0 or null

on this line when try to attach custom DOM elements.

 site_options += '<option ' + selected + ' value="' + value.site + '">Show Only ' + value.site[0].toUpperCase() + value.site.substr(1) + '</option>';

And fixed that to check null before this line:

if(value.site != null)
site_options += '<option ' + selected + ' value="' + value.site + '">Show Only ' + value.site[0].toUpperCase() + value.site.substr(1) + '</option>';

Now it's work.

I found the exact error which I faced:

cannot read property 0 or null

on this line when the script tries to attach custom DOM elements:

 site_options += '<option ' + selected + ' value="' + value.site + '">Show Only ' + value.site[0].toUpperCase() + value.site.substr(1) + '</option>';

And fixed that to check null before this line:

if(value.site != null)
site_options += '<option ' + selected + ' value="' + value.site + '">Show Only ' + value.site[0].toUpperCase() + value.site.substr(1) + '</option>';

Now it works.

added 13 characters in body
Source Link
4b0
  • 406
  • 2
  • 9

I find the exact error which I faced:

cannot read property 0 or null

on this line when try to attach custom DOM elements.

 site_options += '<option ' + selected + ' value="' + value.site + '">Show Only ' + value.site[0].toUpperCase() + value.site.substr(1) + '</option>';

And fixed that to check null before this line:

if(value.site != null)
site_options += '<option ' + selected + ' value="' + value.site + '">Show Only ' + value.site[0].toUpperCase() + value.site.substr(1) + '</option>';

Now it's work.

I find the exact error :

cannot read property 0 or null

on this line when try to attach custom DOM elements.

 site_options += '<option ' + selected + ' value="' + value.site + '">Show Only ' + value.site[0].toUpperCase() + value.site.substr(1) + '</option>';

And fixed that to check null before this line:

if(value.site != null)
site_options += '<option ' + selected + ' value="' + value.site + '">Show Only ' + value.site[0].toUpperCase() + value.site.substr(1) + '</option>';

Now it's work.

I find the exact error which I faced:

cannot read property 0 or null

on this line when try to attach custom DOM elements.

 site_options += '<option ' + selected + ' value="' + value.site + '">Show Only ' + value.site[0].toUpperCase() + value.site.substr(1) + '</option>';

And fixed that to check null before this line:

if(value.site != null)
site_options += '<option ' + selected + ' value="' + value.site + '">Show Only ' + value.site[0].toUpperCase() + value.site.substr(1) + '</option>';

Now it's work.

Source Link
4b0
  • 406
  • 2
  • 9
Loading