Ver Fonte

fixed broken code when overriding transformOOBURL

Dele Olajide há 5 anos atrás
pai
commit
bf1fd01d66
2 ficheiros alterados com 4 adições e 1 exclusões
  1. 3 0
      location/location.js
  2. 1 1
      location/readme.md

+ 3 - 0
location/location.js

@@ -114,6 +114,9 @@
                     {
                         return "<iframe frameborder='0' style='border:0px; border-width:0px; margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; width:100%;height:600px;' src='" + url + "'></iframe>";
                     }
+                    else {
+                        return this.__super__.transformOOBURL.apply(this, arguments);
+                    }
                 }
             }
         }

+ 1 - 1
location/readme.md

@@ -9,4 +9,4 @@ This plugin publishes and recieves the geographic location of the user to xmpp p
 see https://m.conversejs.org/docs/html/plugin_development.html on how to install this plugin
 
 ## How to use
-Click on the arrow icon to publish your deo location
+Click on the arrow icon to publish your geo location