Optimization.

This commit is contained in:
Laurent Espitallier 2017-07-22 19:52:06 +02:00
parent 4b5cfb1832
commit 05978691ba

View File

@ -12,7 +12,7 @@ function shareURL(){
// manages Mozilla Firefox reader mode
var rawUrl = tab.url;
var partToRemove = partToRemove = "about:reader?url=";
var partToRemove = "about:reader?url=";
if(rawUrl.includes(partToRemove)) {
rawUrl = rawUrl.substring(partToRemove.length);
rawUrl = decodeURIComponent(rawUrl);