webXMPP

Check-in [9189e1db93]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Permit FCM key to be left out, and drop support for Firebase.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:9189e1db93315695e04e46fd81b6a7f512d5e026b3b1bc13c19b4a92ce020139
User & Date: web 2019-04-12 23:10:16
Context
2019-04-12
23:11
Set font size; especially good for FxOS which ended up with some bad defaults. check-in: feade2b803 user: web tags: master, trunk
23:10
Permit FCM key to be left out, and drop support for Firebase. check-in: 9189e1db93 user: web tags: master, trunk
2019-03-07
16:18
Support for experimental Web OS microservice architecture; notification light. check-in: c393c4bf57 user: web tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to get.py.

65
66
67
68
69
70
71
72
73
74
75
76


77
78
79
80
81
82
83
84
85
	if self.path_match("favicon.ico"):
	    self.send_error(404)
	    return True,None
	return False,None

    # "/"; main UI
    def send_top(self):
	a = (self.headers.get("User-Agent") or "").lower()

	# You just can't reliably message to mobile Chrome without using
	#  Google's push service.
	# if ("mobile" in a) and ...


	if "chrom" in a:
	    return self.send_redir("/html/xmpp_fcm.html")
	return self.send_redir("/html/xmpp.html")

    # The Service Worker script has to be at the root, peer with
    #  the HTML.  So let it be found here, even though it lives down
    #  with the rest of the JS for purposes of actual storage.
    # Same deal with magic file "manifest.json".  Web apps are dying,
    #  but this stuff sticks around like soap scum in your bathtub.







<



|
>
>
|
|







65
66
67
68
69
70
71

72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
	if self.path_match("favicon.ico"):
	    self.send_error(404)
	    return True,None
	return False,None

    # "/"; main UI
    def send_top(self):


	# You just can't reliably message to mobile Chrome without using
	#  Google's push service.
	approot = self.server.approot
	if approot.fcmkey:
	    a = (self.headers.get("User-Agent") or "").lower()
	    if "chrom" in a:
		return self.send_redir("/html/xmpp_fcm.html")
	return self.send_redir("/html/xmpp.html")

    # The Service Worker script has to be at the root, peer with
    #  the HTML.  So let it be found here, even though it lives down
    #  with the rest of the JS for purposes of actual storage.
    # Same deal with magic file "manifest.json".  Web apps are dying,
    #  but this stuff sticks around like soap scum in your bathtub.