Rework of the designer UI (part4)
[clamp.git] / src / main / resources / META-INF / resources / icd / o2c.html
index 88e8bf1..064fdd3 100644 (file)
@@ -1,20 +1,20 @@
-<script>
-var qp = null;
-if(window.location.hash) {
-  qp = location.hash.substring(1);
-}
-else {
-  qp = location.search.substring(1);
-}
-qp = qp ? JSON.parse('{"' + qp.replace(/&/g, '","').replace(/=/g,'":"') + '"}',
-  function(key, value) {
-    return key===""?value:decodeURIComponent(value) }
-  ):{}
-
-if (window.opener.swaggerUi.tokenUrl)
-    window.opener.processOAuthCode(qp);
-else
-    window.opener.onOAuthComplete(qp);
-
-window.close();
+<script>\r
+var qp = null;\r
+if(window.location.hash) {\r
+  qp = location.hash.substring(1);\r
+}\r
+else {\r
+  qp = location.search.substring(1);\r
+}\r
+qp = qp ? JSON.parse('{"' + qp.replace(/&/g, '","').replace(/=/g,'":"') + '"}',\r
+  function(key, value) {\r
+    return key===""?value:decodeURIComponent(value) }\r
+  ):{}\r
+\r
+if (window.opener.swaggerUi.tokenUrl)\r
+    window.opener.processOAuthCode(qp);\r
+else\r
+    window.opener.onOAuthComplete(qp);\r
+\r
+window.close();\r
 </script>
\ No newline at end of file